Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shamim-dev opened this issue Dec 19, 2017 · 8 comments

Comments

@shamim-dev
Copy link

$ 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

@shamim-dev shamim-dev changed the title LAInstall: Database is not connected. Connect database (.env) and run 'la:install' again. LAInstall: Database is not connected. Connect database (.env) and run 'la:install' again. (laravel 5.5) Dec 19, 2017
@lili94
Copy link

lili94 commented Dec 24, 2017

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
Copy link

lostgone commented Dec 26, 2017

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

@shamim-dev
Copy link
Author

shamim-dev commented Dec 29, 2017 via email

@Shahjalal7311
Copy link

[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
Copy link

change the permission .env file and try

@kamaleom
Copy link

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
Copy link

tinoxn commented Oct 16, 2018

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

@Muhammadinaam
Copy link

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+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants