Install discuz!3.2 Initialize database stage error, Can ' t connect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (13),
I have checked the configuration should be checked, the discovery of special is no problem, depressed ...
1. Server-side MySQL service starts all normal
2. File permissions are no problem
3. Use the MySQL client command to connect normally, and execute SQL
Look, guys, there's probably a problem.
Reply content:
Install discuz!3.2 Initialize database stage error, Can ' t connect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (13),
I have checked the configuration should be checked, the discovery of special is no problem, depressed ...
1. Server-side MySQL service starts all normal
2. File permissions are no problem
3. Use the MySQL client command to connect normally, and execute SQL
Look, guys, there's probably a problem.
Host if using localhost will use the socket connection, you can change to 127.0.0.1 try
Try: mysql-uroot-p-s/var/lib/mysql/mysql.sock
Look in the configuration [client] There is no setting sock
I remember encountering this problem, you try this method
Can ' t connect to local MySQL server through socket '/tmp/mysql.sock '