1 2 3 1. [[Email protected] mysql]# service MySQL restart4 2. MySQL server PID file could not being found! [Failed]5 3. Starting MySQL ... The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid). [Failed]6 7 8 9 Ten 1. May be/usr/local/mysql/data/rekfan.pid file does not have permission to write One A Workaround: Give permission, execute "chown-r mysql:mysql/var/data" "Chmod-r 755/usr/local/mysql/data" and restart mysqld! - 2. The MySQL process may already exist in the process - the Workaround: Use the command "Ps-ef|grep mysqld" to see if there is a mysqld process, kill with "kill-9 process number" and then restart mysqld! - 3. It may be the second time that MySQL is installed on the machine, with residual data affecting the start of the service. - - workaround: Go to MySQL data directory/data See, if there is mysql-bin.index, quickly delete it, it is the culprit. I am using the third method to solve! http://blog.rekfan.com/?p=186 + 4.mysql The/ETC/MY.CNF profile is used when the configuration file is not specified at startup, please open this file to see if there is a specified data directory (DATADIR) under the [Mysqld] section. - + Workaround: Please set this line under [mysqld]: DataDir =/usr/local/mysql/data A 5.skip-federated Field Issues at - Workaround: Check the/etc/my.cnf file for any skip-federated fields that have not been commented out, and if so, comment them out immediately. - 6. Error log directory does not exist - - Workaround: Use "Chown" "chmod" command to give MySQL owner and permissions - 7.selinux, if it is a CentOS system, the default is to turn on SELinux in -Workaround: Turn it off, open the/etc/selinux/config, change the selinux=enforcing to selinux=disabled, and then save the restart machine and try again.
MySQL Startup error