当前位置: 代码迷 >> 综合 >> The server quit without updating PID file (/usr/local/mysql[FAILED]123123.pid)
  详细解决方案

The server quit without updating PID file (/usr/local/mysql[FAILED]123123.pid)

热度:95   发布时间:2023-12-26 16:46:21.0
/usr/local/mysql/support-files/mysql.server start

启动MySQL服务器时报以下错误
Starting MySQL.2021-01-19T09:53:22.948007Z mysqld_safe error: log-error set to ‘/usr/local/mysql/data/mariadb/mariadb.log’, however file don’t exists. Create writable for user ‘mysql’.
The server quit without updating PID file (/usr/local/mysql[FAILED]bp149uuvwsdxsadcai7oz.pid).

原因:

缺少 mariadb.log文件
在/usr/local/mysql/data/mariadb目录下创建mariadb.log文件,并且给mariadb和mariadb.log文件 777权限

再执行

/usr/local/mysql/support-files/mysql.server start
  相关解决方案