SOURCE Package Download:
Compile and install:
To set the configuration file:
To add a startup script:
To add a boot entry:
When finished,/etc/init.d/mysqld start error is as follows:
Starting MySQL. The server quit without updating PID file ([failed]al/mysql/data/franktest01.pid).
1. Firewall SELinux has no shutdown
2.3306 ports are not occupied NETSTAT-TULANP
3. Are there other related mysqld processes running. PS aux |grep MySQL
4. Incorrect configuration file. including/ETC/MY.CNF; /etc/init.d/mysqld
If there is no problem with the system aspects such as selinux, port, or process, you need to consider the configuration file error.
Vim/etc/init.d/mysqldbasedir=/usr/local/mysql # mysql installation directory Datadir=/data/mysql # MySQL's own data directory, including error logs, etc. File.
/etc/init.d/mysqld start starting MySQL. [OK]
After the MySQL compilation installation is complete, start the Times wrong the server quit without updating PID file