FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mysql.connect not useing sock string.

 
Post new topic   Reply to topic     Forum Index -> DDBI
View previous topic :: View next topic  
Author Message
Alan Knowles



Joined: 23 May 2006
Posts: 11

PostPosted: Mon Jun 12, 2006 11:05 pm    Post subject: mysql.connect not useing sock string. Reply with quote

I suggest changing these two.

char[] sock = "/tmp/mysql.sock";

mysql_real_connect(m_mysql, toStringz(host), toStringz(user),
toStringz(passwd), toStringz(dbname), port,
toStringz(sock), 0);

that way db.connect("dbname=test;sock=/var/sock/mysql.sock",.....)
works.
Back to top
View user's profile Send private message Send e-mail
jpelcis



Joined: 09 Mar 2006
Posts: 40

PostPosted: Tue Jun 27, 2006 4:36 pm    Post subject: Reply with quote

Done.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DDBI All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group