When I'm try to run: sudo service mysqld start I get the following error:
Could not open required defaults file: /usr/local/ampps/mysql/etc/my.cnf Fatal error in defaults handling. Program aborted
Starting MySQL.The server quit without updating PID file(/[FAILED]l/ampps/var/mysqld.pid).
I've tried to check if the my.cnf exists or not, and It exits.
I also had this problem in Artix Linux, to solve it just create the file my.cnf
with the following content:
[mysqld]
basedir=/usr
datadir=/var/lib/mysql
user=mysql
pid-file=/run/mysqld/mysqld.pid
After that I was able to run the mysqld service. I don't know in fedora where you have to create it, in my case was inside the directory /etc/mysql
but in your case I guess it would be inside /usr/local/ampps/mysql/etc
. Hope that helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.