Solved

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

Posted on 2008-10-08
6
1,556 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 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22668759
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
ID: 22669028
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
ID: 22669212
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 143

Expert Comment

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

Author Comment

by:vedant0500
ID: 22694165
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
ID: 22696900
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
Foreword This article was written many years ago, in the days when PHP supported the MySQL extension (http://php.net/manual/en/function.mysql-connect.php).  Today (http://php.net/manual/en/migration70.removed-exts-sapis.php) you would not use MySQL…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 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