There may be a permissions issue with the MySQL data directory. You could try setting the permissions as follows (adjust the path to your data directory)
注意需要提升权限 sudo
chown -R mysql:mysql /usr/local/mysql/data
本文介绍了一种常见的MySQL数据库问题——数据目录权限不足,并提供了解决方案,通过调整数据目录的所有权为MySQL用户,确保数据库正常运行。
There may be a permissions issue with the MySQL data directory. You could try setting the permissions as follows (adjust the path to your data directory)
注意需要提升权限 sudo
chown -R mysql:mysql /usr/local/mysql/data
7600
3338
2661
8723
229