table of Contents
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
Check the mysql service startup status
Server login mysql report
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Check the mysql service startup status
service mysqld status
Try to start the service
service mysqld start
failure
Follow the prompts to view the details of the reasons
No specific reason found
View log
cat /var/log/mysqld.log
Found that port 3306 is occupied
Then I remembered that a mysql container was not closed before
docker mysql stop
Restart service
done!
Any restrictions start from the heart!
When you no longer endure, no longer restraint, you will truly mature!
When doing anything, you must have firm and clear goals, and keep your goals in mind!
The editor needs your attention! Your praise is my greatest encouragement! Collection code live! Live!