日度归档:2018年4月14日

Mariadb 修改数据目录,并且打开了SELinux,SELinux配置命令

Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details.


MySQL 8.0启动报错,也是这个问题(已经chown了)

mysqld: File ‘./binlog.index’ not found (OS errno 13 – Permission denied)

chcon -R -t mysqld_db_t /mnt/mysql

参考页面:https://www.thegeekstuff.com/2016/05/move-mysql-directory/