Why can’t you grab tickets when you travel on holiday?Reveal the key technology of 12306 how to ensure the ticket is not oversold>>>
Event: deploying laravel project on alicloud, running PHP artisan migrate, error
[PDOException]
SQLSTATE[HY000] [2002] Connection refused
Environment: CentOS 7, xampp
Solution: 1. At first, I thought it was the wrong password. I used myslq – P to go in again and again and found that there was no problem
Port 2 error: a command was found: showglobalvariableslike’port ‘
But when it comes out, it’s 0, and it’s wrong to change the configuration file to 0( It turns out that it’s 3306 in fact, and it hasn’t changed.)
3 there is exactly one project on the server. Running is no problem
Compared with the. Env file, it is found that the problem is 127.0.0.1. It is right to replace it with localhost