Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5276922
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-10-30 16:04:04

[root@localhost /]# uname -a
Linux localhost.localdomain 2.6.9-5.0.3.EL #1 Sat Feb 19 18:26:49 CST 2005 i686 i686 i386 GNU/Linux
[root@localhost /]# mysql --version
mysql Ver 14.7 Distrib 4.1.14, for pc-linux-gnu (i686) using EditLine wrapper

So I'm running CentOS and I've gone through the qmail install perfectly until now, when I try to use vpopmail and mysql.


[root@localhost bin]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 88 to server version: 4.1.14-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> update user set Password=password("password") where user="vpopmailuser";
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye
[root@localhost bin]# mysql -u vpopmailuser -p password
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 90 to server version: 4.1.14-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use vpopmail
Database changed

mysql> show tables;
Empty set (0.00 sec)

mysql> quit
Bye
[root@localhost /]# cd ~vpopmail/bin
[root@localhost bin]# cat ../etc/vpopmail.mysql
localhost|0|vpopmailuser|password|vpopmail
[root@localhost bin]# ./vadddomain example.com t3stp4ss
vmysql: error creating table 'dir_control': MySQL server has gone away
vmysql: sql error[b\]: MySQL server has gone away
vmysql: error creating table 'example_com': MySQL server has gone away
Error. Failed while attempting to add domain to auth backend
vmysql: error creating table 'dir_control': MySQL server has gone away
vmysql: error creating table 'dir_control': MySQL server has gone away
vmysql: sql error[b\]: MySQL server has gone away
vmysql: error creating table 'dir_control': MySQL server has gone away
vmysql: sql error[e]: MySQL server has gone away
Warning: Failed to delete dir_control for example.com
Error: no auth connection
[root@localhost bin]# wtf yo?


Any ideas from here? There are several other threads on this board about this, none of them seem to be resolved, really. Where did I go wrong?
Is there a reason why it shouldn't work the way I have it setup?
I have tried a different password for mysql as well as tried to add my actual domain.
gza
11-06-2005, 05:02 PM
Aha!
I was using /tmp/mysql.sock and vadddomain was looking for /var/lib/mysql/mysql.sock, so a link worked.
阅读(2026) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~