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>>>
I found a lot of them on the Internet, but they were all wrong
Later, I realized that it was actually a matter of setting
When your code is deployed to the server, the host value of your MySQL should be
127.0.0.1
Not your server IP
Otherwise, it will report an error
In fact, when your code enters the server, MySQL and the code are under the same IP, so 127.0.0.1 should be used instead of the server IP
Remember! No need to change the configuration
Similar Posts:
- laravel : SQLSTATE[HY000] [2002] Connection refused
- SQL Error: 1064, SQLState: 42000ERROR
- Solutions for DB2 SQL error: sqlcode = – 420, sqlstate = 22018
- Solve the error code: 1175 error of MySQL workbench
- The solution to the problem of “host SMBus controller not enabled” when Linux starts in VMWare
- Software caused connection abort: recv failed
- DB2 error: sqlcode = – 802, sqlstate = 22003
- DB2 SQL Error: SQLCODE=-668, SQLSTATE=57016mistake
- [notes] solve the problem of cannot find one or more components… When starting SQL Server Management Studio 17
- DB2 SQL Error: SQLCODE=-805, SQLSTATE=51002 Resolution