切换到路径:/usr/local/mysql/support-files
启动命令:./mysql.server start
mysql启动时报错:
The server quit without updating PID file /usr/local/mysql/data/localhost.pid
直接去对应路径新建文件 localhost.pid
更改拥有者:
chown mysql:mysql localhost.pid
更改权限:
chmod 777 localhost.pid
再次启动: