Page 1 of 1

problem connecting MySQL

PostPosted: 11. March 2006 05:55
by vinothika
hi....
i am new to php. The problem that i am facing is whenever i connect mysql in php code it gives error that "access to ODBC@localhost is denied..." since i am planning to do a small project in PHP, can u please help me out in solving this problem.

PostPosted: 11. March 2006 05:57
by Smartkid
im having this same problem with trying to install a forum, any help?

PostPosted: 11. March 2006 09:44
by cj_nza
What parameters are you supplying in your mysql_connect() function?

Reg. Connecting Mysql

PostPosted: 13. March 2006 09:56
by vinothika
Hi all...
My problem solved.. one of my friend suggested me. i found some other person in this group also having some problem..
what i did is...
1. open http://localhost
2. Goto PHPMYadmin (on the leftside of the home page)
3. There is an option to change /to create password for MySQL.
4. I created a new username and password.
5. Refresh ur MySQL
6. when u try to connect Mysql_connect("localhost","username","password")
7. It runs perfectly.

bye...
[/i]