Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


can't login mysql server php script user odbc

  • Please log in to reply
1 reply to this topic

#1 MiRed


  • Members
  • 1 posts
  • Local time:03:22 AM

Posted 26 December 2010 - 01:55 PM

I am building an application in PHP with MySQL on my localhost. I tried to connect to the database (from the code), but the error message I get is:

mysql_connect() [function.mysql-connect]: Access denied for user 'user'@'localhost' (using password: NO) in C:....whatever.
and:mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:....

I never wrote user 'user' in the whole application but root and even when I comment out that line of mysql_connect, the first error doesn't go away.
The url of the index of the application is localhost/app/Source/index.php
When I make a page: localhost/index2.php with the same content as my db_connec file then there is no error.
Can anyone offer me some advice please?

Thanks in advance!

Edited by hamluis, 30 December 2010 - 02:04 PM.
Moved from Win 7 to Programming ~ Hamluis.

BC AdBot (Login to Remove)


#2 groovicus


  • Security Colleague
  • 9,963 posts
  • Gender:Male
  • Location:Centerville, SD
  • Local time:09:22 PM

Posted 30 December 2010 - 02:55 PM

What usually happens when changes are not showing up on the server is that you are not working on the file that you think you are, or you are not uploading the file to the server that you think you are. Other than that, it is hard to know what the issue may be. I can't see your code...

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users