|
发表于 2022-9-20 10:30:03
|
显示全部楼层
补充一个我遇到的问题:Linux安装MySQL时候出现log-error set to '/var/log/mariadb/mariadb.log', however file don't exists.
解决方案:发现并没有/var/log/mariadb/mariadb.log这个路径,那我们就创建, 并给mysql用户授权即可
mkdir /var/log/mariadb
touch /var/log/mariadb/mariadb.log
chown -R mysql:mysql /var/log/mariadb/
再输入开启mysql服务, 搞定! |
|