If you are facing an issue with Laravel Migration or any related operation that yields the above issue.
NOTE1: If you are using Just Laravel without docker, kindly locate your .env file and make sure you have this settings well set
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME=root
DB_PASSWORD=yourpassword
NOTE2: If you are using Docker + Laravel, kindly locate your docker-compose.yml
Open the file, scroll to where you made a PhpMydmin setting.
Note what you write at PMA_HOST: myHost under environment:
Then go to your .env file and set as below
DB_CONNECTION=mysql
DB_HOST=myHost
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME=root
DB_PASSWORD=yourpassword
SHARE THIS POST
0 comments:
Post a Comment