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

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

[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

转载于:https://my.oschina.net/jszhang/blog/2997368

你可能感兴趣的:(mysqld 启动报错 Failed to open required defaults file: /etc/my.cnf)