配置文件默认读取顺序:
1.Starting MySQL… ERROR! The server quit without updating PID file (/usr/local/mysql/data/centos7-1810.pid).s
日志如下:
方法:chown -R mysql.mysql /var/lib/mysql
2.Starting MySQL… ERROR! The server quit without updating PID file (/usr/local/mysql/data/centos7-1810.pid)
操作1.再次执行初始化:./mysql_install_db --user=mysql --ldata=/data/mysql/data....
3.Fatal error: Can’t open and lock privilege tables: Table ‘mysql.user’ doesn’t exist
方法:一般往往是编译安装的时候出错的,建议重头再来。 或重新运行scripts下mysql-install脚本,在启动mysql,看有什么变化。
操作1.配置文件可以省略,甚至删除,源码安装5.6后,可不用my.cnf文件,如果需要参数也可以用my.cnf文件,加进去