linux安装mysql-8.0.11出现错误

linux安装mysql-8.0.11出现

2020-04-16T11:47:06.723455Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2020-04-16T11:47:06.723586Z 0 [System] [MY-010116] [Server] /mysql/mysql-8.0.11/bin/mysqld (mysqld 8.0.11) starting as process 3855
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2020-04-16T11:47:06.726784Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-04-16T11:47:06.726948Z 0 [System] [MY-010910] [Server] /mysql/mysql-8.0.11/bin/mysqld: Shutdown complete (mysqld 8.0.11)  MySQL Community Server - GPL.

修改 /etc/my.cnf文件可以解决

[client]
port=3306
socket=/tmp/mysql.sock

[mysqld]
port=3306
user=mysql
socket=/tmp/mysql.sock
basedir=/mysql/mysql-8.0.11                ##解压mysql的文件命名
datadir=/mysql/mysql-8.0.11/data           

如果还不行可能还有其他问题导致

你可能感兴趣的:(Linux)