Press "Enter" to skip to content

mysql报错:localhost mysqld: #007/usr/sbin/mysqld: Can’t change dir to ‘/home/mysql/’ (Errcode: 13 “Permission denied”)

解决办法:

[root@localhost mysql]# vi /etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf
   [Service]
   ProtectHome=false
[root@localhost mysql]# systemctl daemon-reload

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注