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!

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

Discussion in 'Database Discussion' 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 Technical Support Community Manager
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice