If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Access denied for user 'ODBC'@'localhost' (using password: NO)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-04, 21:26
inte inte is offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Access denied for user 'ODBC'@'localhost' (using password: NO)

Any ideas why this error could be happening?

Access denied for user 'ODBC'@'localhost' (using password: NO)

MySQL server is running, IIS is set to use PHP, yet this error persists regardless of what my username/password is set to be in the script.
Reply With Quote
  #2 (permalink)  
Old 12-10-04, 03:33
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
what grants have you given user odbc on host localhost?
Reply With Quote
  #3 (permalink)  
Old 07-18-06, 22:12
!aborabi !aborabi is offline
Registered User
 
Join Date: Jul 2006
Posts: 3
I am not sure ? Anyone else?
Reply With Quote
  #4 (permalink)  
Old 07-19-06, 00:05
dbmab dbmab is offline
Registered User
 
Join Date: Apr 2006
Location: Denver, Co. USA
Posts: 240
From the error message, it thinks you are not supplying any password (not just a wrong password.)

To receive any help you are going to need to post more information about what you are doing.

Post your code - x'ing out any sensitive info such as password...
Reply With Quote
  #5 (permalink)  
Old 07-19-06, 09:08
anjanesh anjanesh is offline
Registered User
 
Join Date: Feb 2005
Location: Mumbai, India
Posts: 161
By default, theres no entry in the `users` table of `mysql` database having ODBC as user. There exists only one called root. So login using root.
mysql --user=root
__________________
MySQL 5.1
Reply With Quote
  #6 (permalink)  
Old 07-20-06, 04:05
anselme anselme is offline
Registered User
 
Join Date: Dec 2005
Posts: 266
i am getting exactly the same problem

I get 'root'@'localhost' (using password: NO)
Reply With Quote
  #7 (permalink)  
Old 07-20-06, 10:58
dbmab dbmab is offline
Registered User
 
Join Date: Apr 2006
Location: Denver, Co. USA
Posts: 240
Mind reading does not work over the Internet. Each person might be using a different application, different scripting language, inputting parameters using different syntax... There are several things that could cause this error. Without a description of what you are doing when you get the error, along with showing your code or what you are typing, you will only get guesses as to what the problem is.

To receive any help you are going to need to post more information about what you are doing.

Post your code or what you are entering - x'ing out any sensitive info such as password...
Reply With Quote
  #8 (permalink)  
Old 07-20-06, 16:38
anselme anselme is offline
Registered User
 
Join Date: Dec 2005
Posts: 266
my code ?
i am just trying to connect with mysql administrator, no code at all, a very normal try to connect, no given password, no given username, on localhost
Reply With Quote
  #9 (permalink)  
Old 07-20-06, 19:59
dbmab dbmab is offline
Registered User
 
Join Date: Apr 2006
Location: Denver, Co. USA
Posts: 240
Knowing that you are using the mysql administrator application provides an important clue as to what you are doing when this error occurs. Providing the minimum information will just result in questions and will take longer to get a specific answer for your problem.

Based on this information and the error message, the mysql service is running. When you installed mysql you configured an instance of it and created a password for the root user. If you instead created an anonymous account, I cannot help you as this is not recommend by mysql and I have never done it that way.

If you have not created a database, your only option is to login using the root username and the password you created for the root user. Once you have created a database, with a username and a password, you can login using that information.
Reply With Quote
  #10 (permalink)  
Old 07-21-06, 11:55
anselme anselme is offline
Registered User
 
Join Date: Dec 2005
Posts: 266
i havent given any password and nowhere you can give a user name
i am trying root + localhost

the exact meaning of the error message : 'root'@'localhost' (using password: NO)

now what can i do ? .. that was my question at he begining, nd it could be the same for Inte

Last edited by anselme; 07-22-06 at 00:59.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On