Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. 1045 - Access denied for user "root@192.168.1.9" using password: YES

1045 - Access denied for user "root@192.168.1.9" using password: YES

Scheduled Pinned Locked Moved Database
helpsysadmin
9 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I am getting a different error: 1045 - Access denied for user "root@192.168.1.9" using password: YES I am sure about the password because I am able to login to it on the server itself which has the IP 192.168.1.1 but I am unable to login from my PC which has the IP 192.168.1.9 Kindly help..

    W G 2 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I am getting a different error: 1045 - Access denied for user "root@192.168.1.9" using password: YES I am sure about the password because I am able to login to it on the server itself which has the IP 192.168.1.1 but I am unable to login from my PC which has the IP 192.168.1.9 Kindly help..

      W Offline
      W Offline
      Wayne Gaylard
      wrote on last edited by
      #2

      You need to allow access to the server from all locations. It looks like you have set access to the server from localhost only.

      When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I am getting a different error: 1045 - Access denied for user "root@192.168.1.9" using password: YES I am sure about the password because I am able to login to it on the server itself which has the IP 192.168.1.1 but I am unable to login from my PC which has the IP 192.168.1.9 Kindly help..

        G Offline
        G Offline
        Gerben Jongerius
        wrote on last edited by
        #3

        You need to add additional access rights by executing the following command in Mysql console line:

        GRANT ALL on .* TO 'root'@'192.168.1.%'

        This will allow all computers in the 192.168.1.x subnet to login to your MySQL server.

        J 1 Reply Last reply
        0
        • G Gerben Jongerius

          You need to add additional access rights by executing the following command in Mysql console line:

          GRANT ALL on .* TO 'root'@'192.168.1.%'

          This will allow all computers in the 192.168.1.x subnet to login to your MySQL server.

          J Offline
          J Offline
          Jassim Rahma
          wrote on last edited by
          #4

          can I replace the

          <dbname>

          with EVERYTHING so full access will be granted to all databases for everyone in that IP range?

          G 1 Reply Last reply
          0
          • J Jassim Rahma

            can I replace the

            <dbname>

            with EVERYTHING so full access will be granted to all databases for everyone in that IP range?

            G Offline
            G Offline
            Gerben Jongerius
            wrote on last edited by
            #5

            Sure just replace it with a '*' and you will grant access to all the schema's in the database.

            J 1 Reply Last reply
            0
            • G Gerben Jongerius

              Sure just replace it with a '*' and you will grant access to all the schema's in the database.

              J Offline
              J Offline
              Jassim Rahma
              wrote on last edited by
              #6

              I did but still getting the same when using Navicat as well Visual Studio? How can I troubleshoot?

              Access denied for user 'root'@'192.168.1.9' (using password: YES)

              J G 2 Replies Last reply
              0
              • J Jassim Rahma

                I did but still getting the same when using Navicat as well Visual Studio? How can I troubleshoot?

                Access denied for user 'root'@'192.168.1.9' (using password: YES)

                J Offline
                J Offline
                Jassim Rahma
                wrote on last edited by
                #7

                any idea what can I do to fix this? FYI: MySQL is running on debian..

                1 Reply Last reply
                0
                • J Jassim Rahma

                  I did but still getting the same when using Navicat as well Visual Studio? How can I troubleshoot?

                  Access denied for user 'root'@'192.168.1.9' (using password: YES)

                  G Offline
                  G Offline
                  Gerben Jongerius
                  wrote on last edited by
                  #8

                  Is this a VPS or dedicated server, if so have you verified that MySQL is even listening to external IP addresses. Most hosting providers will limit access to MySQL from outside the server itself. If you have a VPS or dedicated server look in the '/etc/mysql/my.cnf' And make sure the rule below is not applied or change it to your network IP address for that server.

                  bind-address = 127.0.0.1

                  J 1 Reply Last reply
                  0
                  • G Gerben Jongerius

                    Is this a VPS or dedicated server, if so have you verified that MySQL is even listening to external IP addresses. Most hosting providers will limit access to MySQL from outside the server itself. If you have a VPS or dedicated server look in the '/etc/mysql/my.cnf' And make sure the rule below is not applied or change it to your network IP address for that server.

                    bind-address = 127.0.0.1

                    J Offline
                    J Offline
                    Jassim Rahma
                    wrote on last edited by
                    #9

                    Problem solved by just changing the password of the root to another password although the old password was correct but I don't know why I was getting that error.. anyhow, thanks everyone..

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups