MySQL has not been able to connect to my database, enter the password can not enter mysql
Report the error of not connecting to the service
Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2)
I just checked the MySQL log
cat /var/log/mysqld.log
An error was seen that the file does not have permissions
You can modify the read and write permissions of the file or the permissions of all files in the directory
Solution:
You can enter mysql
Similar Posts:
- [Solved] Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- Solution to the error of MySQL: unrecognized service (CentOS)
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
- How to Solve MySQL Startup error: mysql-bin.index not found (Errcode: 13)
- [Solved] MySQL Restart Error: Another MySQL daemon already running with the same UNIX socket
- The ‘MySQL daemon failed to start’ solution appears
- How to Solve MYSQL Startup Error: “MySQL Daemon failed to start”
- MySQL Use innobackupex to backup and recovery error [How to Solve]
- [Solved] MYSQL Export Sheet Error: –secure-file-priv option so it cannot execute this statement
- MYSQL Startup Error: [ERROR] Aria engine is not enabled or did not start. The Aria engine must be enabled to