ubuntu mysql mysqld File databinlogmysql-binindex not found OS errno 13 - Permission denied
This error message indicates that the MySQL server is unable to find the mysql-bin.index file in the specified location due to insufficient permissions.
To resolve this issue, you can follow these steps:
-
Check the ownership and permissions of the
/data/binlogdirectory. Make sure that the MySQL user (usuallymysql) has the necessary permissions to access and modify files in that directory.ls -ld /data/binlogThe output should show the owner and group of the directory, as well as the directory permissions. If the owner is not
mysqlor if the permissions are too restrictive, you need to change them. -
Change the ownership and permissions of the
/data/binlogdirectory if necessary. You can use thechownandchmodcommands to accomplish this.sudo chown mysql:mysql /data/binlog sudo chmod 755 /data/binlogThe first command changes the ownership of the directory to the
mysqluser and group, while the second command sets the permissions to allow read, write, and execute for the owner, and read and execute for others. -
Restart the MySQL service to apply the changes.
sudo service mysql restart
Once the MySQL service restarts, it should be able to find the mysql-bin.index file without any permission denied errors
原文地址: http://www.cveoy.top/t/topic/iTWW 著作权归作者所有。请勿转载和采集!