dbTalk Databases Forums  

Re: Can't connect to mysql from program

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Re: Can't connect to mysql from program in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ovidiu Bivolaru
 
Posts: n/a

Default Re: Can't connect to mysql from program - 02-17-2005 , 02:55 AM






Hi Chris,

Try to edit you my.cnf file ( /usr/local/etc/my.cnf ) and in both
sections [client] and [mysqld] you should have the same path to MySQL
socket:
[client]
socket = /tmp/mysql.tmp
...........
[mysqld]
socket = /tmp/mysql.tmp
.........
Then restart MySQL and run your application again.

Regards,
Ovidiu

Chris Gagnon wrote:

Quote:
Error I get:

Can't connect to local MySQL server through socket ''

I am attempting to connect to my mysql database, through a program I’m
writing using mysql++.
The database is running and my website(also using database) is
receiving no problems.

I notice in the error that it can't connect to socket '' which is the
empty string which is weird, looking for solutions on the net gave me
plenty of results with the socket being '/tmp/mysql.tmp' or the like,
but none with it empty.

Any help would be appreciated,
Chris

Note: FreeBSD is the os

Edit/Delete Message
http://forums.devshed.com/editpost.p...tpost&p=981374


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.