目录

hymn

忽有故人心头过,回首山河已是秋。

Linux MySQL 启动失败

cat /etc/my.cnf

datadir=/usr/local/mysql/data
basedir=/usr/local/mysql
socket=/tmp/mysql.sock
user=mysql
port=3306
character-set-server=utf8
#取消密码验证
skip-grant-tables
#Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
#skip-grant-tables
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

#修改datadir     basedir   log-error 等目录的权限,都改为mysql

chown mysql.mysql /var/log/mysqld.log

标题:Linux MySQL 启动失败
作者:hymn
地址:https://dxyhymn.com/articles/2020/07/02/1593662365141.html