Linux安装MySQL时候出现log-error set to '/var/log/mariadb/mariadb.log', however file don't exists.
这个一看就是权限问题了
log-error set to '/var/log/mariadb/mariadb.log', however file don't exists. Create writable for user 'mysql'.
用WinSCP去看的时候发现并没有/var/log/mariadb/mariadb.log这个路径,那我们就创建, 并给mysql用户授权即可
mkdir /var/log/mariadb
touch /var/log/mariadb/mariadb.log
chown -R mysql:mysql /var/log/mariadb/
再输入开启mysql服务, 搞定!