|
发表于 2005-8-17 14:39:32
|
显示全部楼层
我刚 装的 vpopmail-5.4.12.tar.gz ,好像
root: ~ $ vi vmysql.h
#define MYSQL_UPDATE_SERVER "localhost" \\ mysql服务器名
#define MYSQL_UPDATE_USER "vpopmail" \\ 用户名
#define MYSQL_UPDATE_PASSWD "snoopyx" \\ 改成你设置的密码
#define MYSQL_READ_SERVER "localhost" \\ mysql服务器名
#define MYSQL_READ_USER "vpopmail" \\ 用户名
#define MYSQL_READ_PASSWD "snoopyx" \\ 改成你设置的密码
这一步 已经不用了,加了make就出错。我看了 README.mysql ,按里面的
Setup the MySQL support in the vpopmail sources
# Create the configuration file that vpopmail will use
# to setup the connection to the mysql database
#
# This example will tell vpopmail :
# * Log into the server running on localhost
# * Use the default mysql port
# (In fact if the server is localhost, and you don't specify a port number, then
# I believe the that communications are done via unix sockets rather than TCP/IP)
# * Login with username vpopmailuser
# * Login with password vpoppasswd
# * Use the database called vpopmail
#
echo "localhost|0|vpopmailuser|vpoppasswd|vpopmail" > ~vpopmail/etc/vpopmail.mysql
chown vpopmail.vchkpw ~vpopmail/etc/vpopmail.mysql
chmod 640 ~vpopmail/etc/vpopmail.mysql
# log into MySQL as the MySQL root user
# and then create the database for vpopmail to use
# and then setup the appropriate permissions on this database
/usr/local/mysql/bin/mysql --password="mysql-root-pwd"
CREATE DATABASE vpopmail;
GRANT select,insert,update,delete,create,drop ON vpopmail.*
TO vpopmailuser@localhost IDENTIFIED BY 'vpoppasswd';
quit
Now, build the program with options something like this :
./configure \
--disable-roaming-users \
--enable-logging=p \
--disable-ip-alias-domains \
--disable-passwd \
--enable-clear-passwd \
--disable-domain-quotas \
--enable-auth-module=mysql \
--disable-many-domains \
--enable-auth-logging \
--enable-sql-logging \
--enable-valias \
--disable-mysql-limits
make
make install-strip
装的。
但装完后运行 vadddomain 命令报错:
vmysql: error creating table 'dir_control': MySQL server has gone away
vmysql: sql error: MySQL server has gone away
vmysql: error creating table 'lee_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: 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 lee.com
Error: no auth connection
怎么回事呢?? |
|