Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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

    Mar 2, 2014
    Likes Received:
    Trophy Points:
    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

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    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.

Share This Page