Open ranrinc opened 5 years ago
You can try:
Set bash to use the MAMP version of PHP $ export PATH=/Applications/MAMP/bin/php/php7.x.x/bin:$PATH
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
localhost
You can try:
- Set bash to use the MAMP version of PHP $ export PATH=/Applications/MAMP/bin/php/php7.x.x/bin:$PATH
- 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
- Enter your database host. [127.0.0.1] :
localhost
It didn't help
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.
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.