BleepingComputer.com: can't login mysql server php script user odbc

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

can't login mysql server php script user odbc localhost doesn't react on my changes in the code

#1 User is offline   MiRed 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 1
  • Joined: 26-December 10

Posted 26 December 2010 - 01:55 PM

Hi,
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!
MiRed

This post has been edited by hamluis: 30 December 2010 - 02:04 PM
Reason for edit: Moved from Win 7 to Programming ~ Hamluis.


#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

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...
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users