Hensen Yi writes:
 > I got a error when  I run the sample file of Mysql++ , the file is
 > simple1.cc
 > I compile use below command:
 > 
 > g++ -g  -o mysimple simple1.cc  /usr/lib/libsqlplus.so -L/usr/lib/mysql
 > -I/usr/include/mysql/ -lmysqlclient -lnsl -lz -crypt -lsocket -lm
 > 
 > and I did not got any erro in compile and link, however when I run
 > mysimple I got error:
 > 
 > Error: Can't connect to local MySQL server through socket
 > '/temp/mysql.sock'(111).
 > 
 > So could you help to slove my problem? Thank you very much
 > 
 > Hensen
 > 
 > 


Hi!

You have to eiether change the source or create /etc/my.cnf where you
would define socket file in the [client] options header, as described
in our manual.


Regards,

Sinisa

      ____  __     _____   _____  ___     ==  MySQL AB
     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic
    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaka, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to