Solved

1045 - Access denied for user 'root'@'202.xx.xxx.xx' (using password: YES)

Posted on 2008-10-08
6
1,497 Views
Last Modified: 2008-10-17
I have a cent os machine with MYSQL when I login using putty and using the command mysql -u root -p after entering the root password I am able to login and see and use all the databases but the same connection when done using MYSQLADMIN or Navicat 8 Lite on windows we get the following error 1045 - Access denied for user 'root'@'202.xx.xxx.xx' (using password: YES)
0
Comment
Question by:vedant0500
  • 3
  • 2
6 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
you will have to GRANT the permissions needed to 'root'@'202.xx.xxx.xx' , so that root has remote permissions...
dev.mysql.com/doc/en/GRANT.html
0
 
LVL 9

Expert Comment

by:michofreiha
Comment Utility
Under privileges section in phpMyAdmin edit the user root and change the Host entry from localhost or anything else to Any Host and try...
0
 

Author Comment

by:vedant0500
Comment Utility
I gave the following command after login in from root grant all on dbname.* to root
grant all on dbname.* to root@localhost
grant all on dbname.* to 'root' @ '202.xx.xxx.xxx'

But still the same error
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
>dbname
did you also grant to the mysql (system) database?
will be required, AFAIK
0
 

Author Comment

by:vedant0500
Comment Utility
Please specify the commands to be used, as I am a newbie using Mysql. I am able to login using mysql -u root -p
0
 

Accepted Solution

by:
vedant0500 earned 0 total points
Comment Utility
The issue that i was unable to login to the DBusing mysqladmin was because the default anonymous user root was not set with password and when I tried login with root and blank password it worked. I se the password for root and now using that password I am able to login.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now