Linux安装MySQL时候出现log-error set to '/var/log/mariadb/mariadb.log', however file don't exists.

Linux安装MySQL时候出现了问题


这个一看就是权限问题了

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服务, 搞定!

你可能感兴趣的:(阿里云服务器相关,MySQL数据库相关)