The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ERROR 2003 (HY000): Can't connect to MySQL server on 'hostname/ipaddress'

Discussion in 'Database Discussions' started by Wael ElSawy, Mar 2, 2014.

  1. Wael ElSawy

    Wael ElSawy Registered

    Joined:
    Mar 2, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi guys,

    I know my question is so silly and old but i don't know to connect my pc remotely to the database i created in cpanel, although i added % in the host field of Remote MySQL.

    i get error message when i try to connect it via command line:

    shell> mysql -u cpanelusername -p -h domain
    Enter password: cpanelpassword
    ERROR 2003 (HY000): Can't connect to MySQL server on 'hostname/ipaddress' (10060)

    Any one can help me please?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Make sure you add the IP address you are connecting from to the "Remote MySQL" option in cPanel for this account. Try using your actual IP address instead of a wildcard. Also, make sure no firewall rules on your server or home computer are restricting the connection attempt.

    Thank you.
     
Loading...

Share This Page