> From: Buddy Bell <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: mysql_real_connect - capi
> Date: 03 Sep 2002 04:05:24 -0400
> 
> I am using c to write some basic mysql programs and I cannot seem to get
> past mysql_real_connect.  I get an access denied message.  It does not
> recognize the password user combination.  I set the usr/pswd up with the
> admin progrram and can get into mysql fine.  One thing I noticed on the
> error message is the full host and domain name are appended to the usr
> and the password is being used.  My statement looks like:  connect =
> mysql_real_connect(&mysql,"prod.home.com,"root","fakepswd","",0,0,0) ;
> Thanks for the help in advance.  BB
> 
> ----

Try:

mysql_real_connect(&mysql,"prod.home.com","root","fakepswd", 0, NULL, 0)

this is the syntax that works for me

regis




---------------------------------------------------------------------
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