dwijitsolutions / laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like Advanced CRUD Generation, Module Manager, Backups and many more.
http://laraadmin.com
MIT License
1.58k stars 537 forks source link

LAInstall: Database is not connected. Connect database (.env) and run 'la:install' again. (laravel 5.5) #259

Open shamim-dev opened 6 years ago

shamim-dev commented 6 years ago

$ php artisan la:install ?[32mLaraAdmin installation started...?[39m ?[32mfrom: C:\xampp\htdocs\la_project\vendor/dwij/laraadmin/src/Installs to: C:\xampp\htdocs\la_project?[39m

DB Assistant:

?[32mWant to set your Database config in the .env file ? (yes/no)?[39m [?[33myes?[39m]:

no

?[32mThis process may change/append to the following of your existing project files:

     app/Http/routes.php
     app/User.php
     database/migrations/2014_10_12_000000_create_users_table.php
     gulpfile.js

Please take backup or use git. Do you wish to continue ? (yes/no)?[39m [?[33myes?[39m]:

Generating Controllers... Generating Config... Generating Models... ?[32mmkdir: (C:\xampp\htdocs\la_project/app/Models)?[39m Generating Uploads / Thumbnails folders... ?[32mmkdir: (C:\xampp\htdocs\la_project/storage/uploads)?[39m ?[32mmkdir: (C:\xampp\htdocs\la_project/storage/thumbnails)?[39m Generating LaraAdmin Public Assets... Generating migrations... Copying seeds... Generating resources: assets + views... Checking database connectivity... Running migrations... ?[32mThe compiled services & packages files have been removed.?[39m ?[32mCache cleared successfully.?[39m ?[32mGenerating optimized autoload files?[39m

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover PHP Fatal error: Trait 'Illuminate\Foundation\Auth\Access\AuthorizesResources' not found in C:\xampp\htdocs\la_project\app\Http\ Controllers\Controller.php on line 13 ?[37;41mScript @php artisan package:discover handling the post-autoload-dump event returned with error code 255?[39;49m

?[33mMigration table not found.?[39m ?[32mMigration table created successfully.?[39m

?[33mIn LAInstall.php line 326:?[39m ?[37;41m ?[39;49m ?[37;41m LAInstall: Database is not connected. Connect database (.env) and run 'la:install' again. ?[39;49m ?[37;41m SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: a lter ?[39;49m ?[37;41m table users add unique users_email_unique(email)) ?[39;49m ?[37;41m ?[39;49m

lili94 commented 6 years ago

hi don't use database assistance go to your .env file make your configuration database then when ask you say no and everthing work fine

lostgone commented 6 years ago

it's still same for me. do you have other ideas ? thx

shamim-dev commented 6 years ago

Not working....

On Tue, Dec 26, 2017 at 11:41 AM, lostgone notifications@github.com wrote:

it's still same for me? do have other ideas ? thx

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dwijitsolutions/laraadmin/issues/259#issuecomment-353920986, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsSx8Kr1nrV3X_Sr9O7Y9kpKMXJw9G3ks5tEIcYgaJpZM4RGxaJ .

-- Thanks and Regards

Ahmad Reza Shamim Dhanmondi-15, Dhaka. Mobile: 01814111176

Shahjalal7311 commented 6 years ago

[Exception]
LAInstall: Database is not connected. Connect database (.env) and run 'la:i
nstall' again.
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
sword: YES)

Ethosteck commented 6 years ago

change the permission .env file and try

kamaleom commented 6 years ago

1 - change permission to files .env, storage/, bootstrap/, database/migrations/ 2 - using mysql create a empty database set username and password 3 - run la:install again and write [YES] on the first option and use the database name, user, and password that you create before 4 - Write [yes] again 5 - follow the steps after success

tinoxn commented 6 years ago

hey guys am still struggling with this issue please help me thanks

Muhammadinaam commented 3 years ago

Hi, this is a nice package but I think that the developers have stopped working on it. Maybe you can try this package: https://github.com/Muhammadinaam/speed-admin. It supports Laravel 8+.