function.mysql-query
Posted by: mugu (---.mn.res.rr.com)
Date: April 13, 2006 10:26PM

Hello

I have read many documentations that I still can't able to solve this problem.

mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in

I used the OLD_PASSWORD() function thingy, and tried to find mywamp.ini in the windows folder (which I couldn't find).

Anyone got any idea how to fix this?? I would greatly appreciate for any help.

Thanks in advanced


Re: function.mysql-query
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: April 14, 2006 12:12AM

WAMP comes with the default mysql root user set with no password, so if you have not changed the password to something else, connect to the db like this:

mysql_connect ('localhost', 'root', null)



Post Edited (04-14-06 00:13)

CyberSpatium
----------------------
WAMP Forum Admin

Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Re: function.mysql-query
Posted by: mugu (---.mn.res.rr.com)
Date: April 14, 2006 01:23AM

What if I changed it?

By the way, I can't get the mysql worked, even I tried mysqli, everything was really messed up.

Thanks for any help.

Re: function.mysql-query
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: April 14, 2006 06:15AM

if you changed mysql root user password use:

mysql_connect ('localhost', 'root', 'PasswordGoesHere')

Sorry, only registered users may post in this forum.