WDlinux官方论坛's Archiver

cnzjs 发表于 2012-6-19 12:14

奇怪了,我这台机器的MYSQL就是弄不好,2.4也不行

每次安装的时候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[[color=Red]FAILED[/color]]
/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,问题依旧

现在默认页面可以打开,就是8080提示无法连接mysql,请检查mysql是否已启动及用户密码是否设置正确!:


求老大帮忙。。。。

zsroot 发表于 2012-6-19 12:21

**** 作者被禁止或删除 内容自动屏蔽 ****

cnzjs 发表于 2012-6-19 12:46

CentOS 5.7 32位标准版  啥都没

cnzjs 发表于 2012-6-19 12:46

我在这家又开了一个试用的VPS,一样的系统,居然没问题。。。。难道我这台被诅咒了?

admin 发表于 2012-6-19 13:03

你看下/www/wdlinux/msyql/var目录下有没内容?
正常情况下,这里会有
mysql
test
两个目录
以及一两个文件

admin 发表于 2012-6-19 13:04

如果没有,就是在安装创建mysql数据库时没成功

cnzjs 发表于 2012-6-19 13:16

没有。。。。。只有一个err文件。。我帖出来。。老大救命。。。
[root@a2515 var]# vi a2515.err

120619 12:06:21 mysqld_safe Starting mysqld daemon with databases from /www/wdlinux/mysql-5.1.61/var
/www/wdlinux/mysql-5.1.61/libexec/mysqld: Table 'mysql.plugin' doesn't exist
120619 12:06:21 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
120619 12:06:21 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
120619 12:06:21 mysqld_safe mysqld from pid file /www/wdlinux/mysql-5.1.61/var/a2515.pid ended

admin 发表于 2012-6-19 13:31

/www/wdlinux/mysql/bin/mysql_install_db
运行下这个

cnzjs 发表于 2012-6-19 13:33

[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]#


这是啥意思。。。。

cnzjs 发表于 2012-6-19 13:52

另外老大说的2.4新出的rpm安装5分钟就完事应该怎么弄啊,我这还是编译的,将近一个小时

cnzjs 发表于 2012-6-19 14:12

可以了  /etc/hosts根本这文件就不存在,够坑爹的

admin 发表于 2012-6-19 17:22

什么系统?怎么会没这个文件?

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.