cms icon indicating copy to clipboard operation
cms copied to clipboard

Installation failed

Open ranrinc opened this issue 5 years ago • 3 comments

I'm trying to install it on macOS running MAMP Running NGINX MySQL PHP 7.1.22

php artisan lavalite:install

unable to setup my DB correctly keep asking for the right credential, not even root go through. So any help would be helpfull.

ranrinc avatar Nov 14 '18 05:11 ranrinc

You can try:

  1. Set bash to use the MAMP version of PHP $ export PATH=/Applications/MAMP/bin/php/php7.x.x/bin:$PATH

  2. Add your .env file ... DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=dbname DB_USERNAME=dbuser DB_PASSWORD=dbpass DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock

when you will install 3. Enter your database host. [127.0.0.1] :

localhost

rwalus avatar Dec 08 '18 22:12 rwalus

You can try:

  1. Set bash to use the MAMP version of PHP $ export PATH=/Applications/MAMP/bin/php/php7.x.x/bin:$PATH
  2. Add your .env file ... DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=dbname DB_USERNAME=dbuser DB_PASSWORD=dbpass DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock

when you will install 3. Enter your database host. [127.0.0.1] :

localhost

It didn't help

gadimlie avatar Oct 25 '20 20:10 gadimlie

The same problem. Please ensure your database credentials are valid. But they are valid in reality.

Ok, I fixed it by creating a new user - homestead and a new database - homestead. Maybe It will be useful for someone.

PFAhard avatar Oct 28 '21 12:10 PFAhard