/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