make sure that gen_ha1 is under /usr/sbin, you can also modify the script and add the path
of the gen_ha1.
hope this helps.
----- Original Message -----
From: "Lin-Kai Cheng" <rap1(a)ms76.hinet.net>
To: <serusers(a)lists.iptel.org>
Sent: Thursday, May 27, 2004 12:28 PM
Subject: [Serusers] Using ser_mysql.sh failed
I tried to use "/usr/sbin/ser_mysql.sh" to create SER database in MySQL.
I typed the password of MySQL and entered the realm
But the result showed that
/usr/sbin/ser_mysql.sh: line 1: gen_ha1: command not found
HA1 calculation failed
I've tried to type config variable CMD under command line to see whether I can enter
MySQL or not.
Yes! The CMD works fine.
Then I have no idea about the gen_ha1.
Please give me some suggestions.
Thanks.
My config vars are as follows,
DBNAME=ser
DBHOST=mymachine
USERNAME=ser
DEFAULT_PW=heslo
ROUSER=serro
RO_PW=47serro11
SQL_USER="root"
CMD="mysql -u$SQL_USER -h $DBHOST "
DUMP_CMD="mysqldump -h $DBHOST -u$SQL_USER -c -t "
BACKUP_CMD="mysqldump -h $DBHOST -u$SQL_USER -c "
TABLE_TYPE="TYPE=MyISAM"
# user name column
USERCOL="username"
GENHA1='gen_ha1'
--
www.bembang.com