每次安装的时候PUTTY都会有一声“嘟”的错误,都是在安装到这里的时候
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
那个[FAILED]似乎就是错误,安装完毕有3行连续的ERROR 2002,然后service mysqld start提示的是
Starting Mysql.Manager of pid-file quit without updating fi[FAILED]
就不行了,昨晚弄了一夜,2.2,2.3都试了,然后给客服留了言,让他帮我把这个VPS初始化一下,今早看到出了2.4,而且VPS又初始化了,应该没问题了,结果还是这样,仔细一看出错的内容,似乎是chown出错,于是我创建了/www/wdlinux/mysql/var这个目录,然后chown mysql:mysql 这个目录
再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]#