Hi Ahmad,
 
I have found out how to define the different port number for the mysql. We can actually define the mysql port number in the vmysql.h file under the
 
/* defaults - no need to change */
#define MYSQL_VPORT 0
 
Default value is 0 and you can define to the differnet port number if you wish.
 
Thank you for your help anyway.
----- Original Message -----
Sent: Friday, July 11, 2003 3:21 PM
Subject: Re: [vchkpw] vpopmail + mysql : Define other mysql host in vmysql.h how-to?

hmm have u changed /etc/service mysql 3333
it can be handy ... me is kinda busy let me find where you can put port in vmyslq.h or you will have to change some code in this file...give me time I will do for u...

--
 
Best Regs,
Masood Ahmad Shah
System Administrator
 
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
|   * * * * * * * * * * * * * * * * * * * * * * * *
|   Fibre Net (Pvt) Ltd. Lahore, Pakistan
|   Tel: +92-42-6677024
|   Mobile: +92-300-4277367
|   http://www.fibre.net.pk
|   * * * * * * * * * * * * * * * * * * * * * * * *
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
----- Original Message -----
From: Kuan Yik
Sent: Friday, July 11, 2003 11:42 AM
Subject: Re: [vchkpw] vpopmail + mysql : Define other mysql host in vmysql.h how-to?

Hi Ahmad, thanks for your reply, but what if I want to define different port number or sock file?
 
It is not working if I define like
 
#define MYSQL_UPDATE_SERVER "localhost:3333"
#define MYSQL_READ_SERVER   "localhost:3333"
 
OR
 
#define MYSQL_UPDATE_SERVER "/usr/local/mysq/mysql.sock"
#define MYSQL_READ_SERVER   "/usr/local/mysql/mysql.sock"
 
Any idea how ?
 
thanks
----- Original Message -----
Sent: Friday, July 11, 2003 2:25 PM
Subject: Re: [vchkpw] vpopmail + mysql : Define other mysql host in vmysql.h how-to?

simple is that open you command prompt
 
vi vmysql.h
you will find 2 lines like shown below...
 
 
#define MYSQL_UPDATE_SERVER "localhost"
#define MYSQL_READ_SERVER   "localhost"
 
and blah balh

--
 
Best Regs,
Masood Ahmad Shah
System Administrator
 
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
|   * * * * * * * * * * * * * * * * * * * * * * * *
|   Fibre Net (Pvt) Ltd. Lahore, Pakistan
|   Tel: +92-42-6677024
|   Mobile: +92-300-4277367
|   http://www.fibre.net.pk
|   * * * * * * * * * * * * * * * * * * * * * * * *
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
----- Original Message -----
From: Kuan Yik
Sent: Friday, July 11, 2003 6:16 AM
Subject: [vchkpw] vpopmail + mysql : Define other mysql host in vmysql.h how-to?

Hi guys, anyone of you have any idea how to defind the parameter of mysql host in vmysql.h file if I want to point it to different port and host instead of "localhost".
 
Please advise and thank you very much.
 
Regards,
Max

Reply via email to