Remote access for MySQL TCP/IP connections on cPanel

For any application using TCP/IP to connect to a MySQL database on a shared hosting account, the IP address must be whitelisted in the cPanel Remote MySQL tool. This includes connections using the local loopback address (127.0.0.1), which cPanel also treats as a remote connection.

Make sure you specify 127.0.0.1 in the cPanel Remote MySQL tool. Specifying localhost does not work.

For step-by-step instructions on how to configure remote MySQL access in cPanel, please see this article.

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.