mysql_real_connect - capi
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 - 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
Re: mysql_real_connect - capi
Buddy, Tuesday, September 03, 2002, 11:05:24 AM, you wrote: BB I am using c to write some basic mysql programs and I cannot seem to get BB past mysql_real_connect. I get an access denied message. It does not BB recognize the password user combination. I set the usr/pswd up with the BB admin progrram and can get into mysql fine. One thing I noticed on the BB error message is the full host and domain name are appended to the usr BB and the password is being used. My statement looks like: connect = BB mysql_real_connect(mysql,prod.home.com,root,fakepswd,,0,0,0) ; What exact error message did you get? Did you connect from the same host with admin program as with C application or no? -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net ___/ www.mysql.com - 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
mysql_real_connect - capi
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