每次安裝的時(shí)候PUTTY都會(huì)有一聲“嘟”的錯(cuò)誤,都是在安裝到這里的時(shí)候
Making install in win
make[1]: Entering directory `/root/lanmp/mysql-5.1.61/win'
make[2]: Entering directory `/root/lanmp/mysql-5.1.61/win'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/lanmp/mysql-5.1.61/win'
make[1]: Leaving directory `/root/lanmp/mysql-5.1.61/win'
chown: cannot access `/www/wdlinux/mysql/var': No such file or directory
Starting MySQL.Manager of pid-file quit without updating fi[FAILED]
/www/wdlinux/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
pcre installing...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
那個(gè)[FAILED]似乎就是錯(cuò)誤,安裝完畢有3行連續(xù)的ERROR 2002,然后service mysqld start提示的是
Starting Mysql.Manager of pid-file quit without updating fi[FAILED]
就不行了,昨晚弄了一夜,2.2,2.3都試了,然后給客服留了言,讓他幫我把這個(gè)VPS初始化一下,今早看到出了2.4,而且VPS又初始化了,應(yīng)該沒問題了,結(jié)果還是這樣,仔細(xì)一看出錯(cuò)的內(nèi)容,似乎是chown出錯(cuò),于是我創(chuàng)建了/www/wdlinux/mysql/var這個(gè)目錄,然后chown mysql:mysql 這個(gè)目錄
再service mysqld start,問題依舊
[root@a2515 bin]# mysql_install_db
Neither host 'a2515' nor 'localhost' could be looked up with
/www/wdlinux/mysql-5.1.61/bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option
[root@a2515 bin]#