mysqld 启动报错 Failed to open required defaults file: /etc/my.cnf

原创
2019/01/05 18:09
阅读数 7.3K
[root@archlinux system]# systemctl status  mysqld8
● mysqld8.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld8.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2019-01-05 18:04:17 CST; 5s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 20633 ExecStart=/usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --daemonize --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
 Main PID: 20633 (code=exited, status=1/FAILURE)

Jan 05 18:04:17 archlinux systemd[1]: Started MySQL Server.
Jan 05 18:04:17 archlinux mysqld[20633]: mysqld: [ERROR] Failed to open required defaults file: /etc/my.cnf
Jan 05 18:04:17 archlinux mysqld[20633]: mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
Jan 05 18:04:17 archlinux systemd[1]: mysqld8.service: Main process exited, code=exited, status=1/FAILURE
Jan 05 18:04:17 archlinux systemd[1]: mysqld8.service: Failed with result 'exit-code'.

解决方法:

chmod 644 /etc/my.cnf

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部