Hello Ahmad, hello all,

after Installing mysql with vpopmail. Then when I started the mysql
daemon.. The I trief to log in to my mysql database and got the
message could not find mysql.sock in /tmp.

In the mysql-configuration file /etc/my.cnf  (in my redhat system) I
changed the place for the socket file from
"socket=/var/lib/mysql/mysql.sock" to "socket=/tmp/mysql.sock".
That doesn�t work.

What can I do? Perhaps put a link ln -s /var/lib/mysql/mysql.sock
/tmp/mysql.sock in /tmp????

Oliver



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
  To: Ahmad Masood Shah ; [EMAIL PROTECTED]
  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 ----- 
    From: Ahmad Masood Shah
    To: Kuan Yik ; [EMAIL PROTECTED]
    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
      To: [EMAIL PROTECTED]
      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