By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

Connection Failed OBBC driver 5.1 Access Denied for user 'Root'@'localhost'

P: 1
My Scenario on Windows VISTA, MySQL 5.5:

In cmd line I am able to enter 'mysql -u root -p' to enter MySQL shell after entering the correct password.
'USE myDB' or SHOW DATABASES' or 'SHOW TABLES' etc works here

Entering in 'mysqladmin -u root -h 'localhost' version variables -p'
I get the following error message:
'mysqladmin: connect to server at ''localhost'' failed'
'error: 'Unknown MySQL server host ''localhost'' (0)''

In 'Services' I can see that MySQL has status 'started'

In MySQL Connector/ODBC I got the following parameters:
'Data Source Name = mysql_test'
'TCP/IP Server = localhost'
'Port = 3306'
'User = root'
'Password = mypass'

When I try to test the connection I get the following error:
Connection Failed: [HY000][MySQL][ODBC 5.1 Driver]Access Denied for user 'root'@'localhost' (Using Password: YES

Pinging localhost is 100% successfull.
netstat -a returns 'Local Address: TCP 0.0.0.0:3306
Jan 12 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.