On Wed, 2004-09-22 at 13:33, Alessio C. wrote:
> I have installed vqregister 2.6 on my slackware 9.0 (qmail, vpopmail
> 5.4.5 and mysql 3.23.56)
> 
> vqregister works fine but don't save data on mysql table
> 
> i have modified Makefile:
> 
> VDIR = /home/vpopmail
> CC = gcc
> BIN = vqregister
> DEFS = -I$(VDIR)/include -I/usr/include/mysql
> LINKDEFS =
> LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt -L/usr/lib/mysql -lmysqlclient
> OBJS = main.o cgi.o template.o global.o misc.o config.o register.o
> password.o \
>          vpopmail.o db.o field.o badhosts.o
> 
> INSTALL_DIR = /var/www/cgi-bin/vqregister
> INSTALL_BIN = vqregister.cgi
> INSTALL_UID = vpopmail
> INSTALL_GID = vchkpw
> 
> and the vqregister.conf:
> 
> DB_Host localhost
> DB_Name user_store
> DB_User root
> DB_Password root_password
> DB_Fields user_info user,dom,pass,fname
> 
> 
> I have created the database and the table:
> 
> CREATE DATABASE `user_store`;
> CREATE TABLE `user_info` (
>     `user` varchar(20) default NULL,
>     `dom` varchar(20) default NULL,
>     `pass` varchar(50) default NULL,
>     `cemail` varchar(20) default NULL,
>     `fname` varchar(20) default NULL
> ) TYPE=MyISAM;
> 
> vqregister add user but the table is empty
> 
> the file db_mysql.h is empty, is regular?

You need to link db_mysql to db:

lrwxrwxrwx   1 root  wheel      10 May 20  2003 db.c -> db_mysql.c
lrwxrwxrwx   1 root  wheel      10 May 20  2003 db.h -> db_mysql.h

Rick


> Someone can help me
> Thanks

Reply via email to