启动mysql报错mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log'
Posted Kikyo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启动mysql报错mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log'相关的知识,希望对你有一定的参考价值。
原因
因为没有路径也没有权限,所以创建此路径并授权给mysql用户
mkdir /var/log/mariadb
touch /var/log/mariadb/mariadb.log
# 用户组及用户
chown -R mysql:mysql /var/log/mariadb/
/usr/local/mysql/support-files/mysql.server start
以上是关于启动mysql报错mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log'的主要内容,如果未能解决你的问题,请参考以下文章
启动mysql报错mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log'
启动mysql报错mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log'
mysql启动报错:/usr/bin/mysqld_safe: line 183: 17006 Killed nohup /usr/sbin/mysqld --basedir=/usr --data