Error message: Starting MySQL. Manager of pid-file quit without updating file. [FAILED]
Vim install_mysql.shCHOST = "x86_64-pc-linux-gnu"
CFLAGS = "-march = nocona-O2-pipe"
CXXFLAGS = "$ {CFLAGS }"
./Configure \
"-- Prefix =/usr/local/mysql "\
"-- Localstatedir =/data/mysql/data "\
"-- With-comment = Source "\
"-- With-server-suffix =-hx10 "\
"-- With-mysqld-user = mysql "\
"-- Without-debug "\
"-- With-big-tables "\
"-- With-charset = gbk "\
"-- With-collation = gbk_chinese_ci "\
"-- With-extra-charsets = all "\
"-- With-pthread "\
"-- Enable-static "\
"-- Enable-thread-safe-client "\
"-- With-client-ldflags =-all-static "\
"-- With-mysqld-ldflags =-all-static "\
"-- Enable-Cycler "\
"-- Without-isam "\
"-- Without-innodb "\
"-- Without-ndb-debug"
Make & make install
Mkdir-p/data/mysql/data
Useradd mysql-d/data/mysql-s/sbin/nologin
/Usr/local/mysql/bin/mysql_install_db -- user = mysql
Cd/usr/local/mysql
Chown-R root: mysql.
Chown-R mysql/data/mysql/data
Cp share/mysql/my-huge.cnf/etc/my. cnf
Cp share/mysql. server/etc/rc. d/init. d/mysqld
Chmod 755/etc/rc. d/init. d/mysqld
Chkconfig -- add mysqld
/Etc/rc. d/init. d/mysqld start
Cd/usr/local/mysql/bin
For I in *; do ln-s/usr/local/mysql/bin/$ I/usr/bin/$ I; done then runs the script sh install_mysql.sh
The above script is used for installation. After installation is complete, a prompt is displayed when it is started.
[Root @ kspc mysql-5.1.31] #/etc/init. d/mysqld start
Starting MySQL. Manager of pid-file quit without updating fi [FAILED]
The script has a creation
/Usr/local/mysql/bin/mysql_install_db -- user = mysql ------------------ initial database
Run again
Restart mysql. Everything is OK.
[Root @ kspc mysql-5.1.31] #/etc/init. d/mysqld restart
MySQL manager or server PID file cocould not be found! [FAILED]
Starting MySQL. [OK]