vpopmail添加域名时出现不能连接到MYSQL错误怎么解决?
发表于:2007-05-25来源:作者:点击数:
标签:
OS:RH8 MYSQL安装在/mysql下,安装完vpopmail后,用./vadddomainsyps .net 添加syps.net域,第一次出现找不到libmysqlclient.so.12。把/mysql/lib/mysql下的同名文件拷到/usr/lib下再添加域名时出现如下错误: CouldnotconnecttoMysqlupdateserverCan'tconn
OS:RH8
MYSQL安装在/mysql下,安装完vpopmail后,用./vadddomain syps
.net添加syps.net域,第一次出现找不到libmysqlclient.so.12。把/mysql/lib/mysql下的同名文件拷到/usr/lib下再添加域名时出现如下错误:
Could not connect to Mysql update server Can't connect to local Mysql server through socket '/tmp/mysql.sock' (2) with database.
Could not connect to Mysql update server Can't connect to local Mysql server through socket '/tmp/mysql.sock' (2)
vmysql: sql error[3]:
MySQL server has gone away
vmysql: sql error[c]: MySQL server has gone away
vmysql: sql error[c]: MySQL server has gone away
vmysql: sql error[b]: MySQL server has gone away
vmysql: sql error[3]: MySQL server has gone away
vmysql: sql error[2]: MySQL server has gone away
Error: Unable to chdir to vpopmail/users directory
请问怎么解决这个问题?
注:mysql.sock在/www/tmp下面
gadfly 回复于:2003-05-21 16:54:30
|
看看mysql起来没有?
|
syps 回复于:2003-05-21 21:01:29
|
mysql起来了,我的PHPBB、PHPMYADMIN等一切正常,而且MYSQL里没看到VPOPMAIL数据库。
|
tutux 回复于:2003-05-21 21:26:35
|
[quote:991eda0a6c="syps"]L server has gone away
Error: Unable to chdir to vpopmail/users directory
请问怎么解决这个问题?
注:mysql.sock在/www/tmp下面[/quote:991eda0a6c]
似乎有文档说vpopmail在安装时不初始化数据库,在添加域时才初始化。
至于说连接不上的问题,你检查你的mysql配置,mysql.sock的确配置为在/www/tmp而不是/tmp/mysql.sock?
如果配置在mysql.sock在/www/tmp,那么
ln -s /www/tmp/mysql.sock /tmp
应该能解决你的问题。
|
syps 回复于:2003-05-21 22:31:52
|
参照 tutux 的说法,已搞定。多谢 tutux 及 gadfly 及chinaunix
|
原文转自:http://www.ltesting.net
|