The errors are as follows.
Execute: php artisan migrate with error: </strong
[PDOException]
SQLSTATE[HY000] [2002] Connection refused
Solution:
Step 1: The host is misconfigured under the .env file, it should be mysql on virtual, so host=192.168.10.10
Step 2: Execute php artisan config:clear
Step 3: Execute php artisan migrate
Similar Posts:
- Laravel [1045] Solution Access denied for user’homestead’@’localhost’
- Dbeaver cannot execute database script
- [Solved] ER_NOT_SUPPORTED_AUTH_Mode node connection database error
- laravel : SQLSTATE[HY000] [2002] Connection refused
- host blocked because of many connection errors [How to Solve]
- When laravel is uploaded to the server, whoops, looks like something went wrong appears
- mysql Remote connection problems: Lost connection to MySQL server at ‘reading initial communication packet’, syste…
- MySql Host is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts…
- MySql Host is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’ [How to Solve]
- Vagrant: host manager host name management plug in