"Starting MySQL.190403 00:17:15 mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log”

原文:https://cloud.tencent.com/info/9b4daaeff3eafb7a34e3ffc5a4c1e031.html

我的mysql版本:5.6.43

运行 support-file里的启动服务:./mysql.server start报错:

“Starting MySQL.190403 00:17:15 mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log', however file don't exists. Create writable for user 'mysql'.”

根据提示,只需要在对应的目录下创建报错中指定的文件,即:

cd /var/log/

mkdir mariadb

cd mariadb/

touch mariadb.log

重新尝试启动服务,该问题解决。

你可能感兴趣的:(MySQL)