I have problems accessing my MySQL database remotely

If you have problems accessing your database at your web hosting account remotely please make sure that:

  • You are using the correct MySQL hostname – it should be yourdomain.com or your server's name;
  • You are using the correct MySQL database / username / password. You can check this tutorial for more information on how to create them;
  • Don't forget to specify your MySQL username and database with the prefix yourusername_ in front of its given name. For example, your cPanel username is user and you have named your database joomla. In this case you have to refer to your database as user_joomla;
  • You have allowed the remote host to access your database. This can be done from your cPanel > Remote MySQL.
  • You are connecting to the TCP port 3306.

A common mistake is to try accessing your databases using the main cPanel login. This will not work and you have to use the MySQL user instead.

Important (only for accounts hosted on GoGeek servers): In order to complete the PCI compliance requirements the remote MySQL connection to the GoGeek servers' primary IP is blocked. Still, to establish a remote MySQL connection to a database hosted on a GoGeek server use the server's secondary IP (ns2.servername.biz). It will be listed in the corresponding Remote MySQL page. Alternatively, it can be found in the Customer Area -> My Account section -> Manage.

If you are having problems accessing your MySQL databases remotely, ask your host for assistance. SiteGround provides the best MySQL hosting and we will assist you with any MySQL issues you may have.

cPanel is easy to work with when you have the right host to support you. If you need a reliable partner to help you manage your website with cPanel, check out our cPanel hosting services!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to export/import a MySQL database via SSH

In this article we will show you how to export and import a MySQL database via SSH. Managing your...

Error about legacy type authentication (old-style) when connecting remotely to MySQL

This particular error can occur in some MySQL clients. The reason for it is that our servers...

How to change the password of a Mysql user in cPanel?

If you have already created a MySQL user through the cPanel -> Mysql Databases tool you may...

How to reset the password for a MySQL database?

You may need to change the password of your database in order to improve the security of your...

I cannot create views in MySQL

Regular MySQL users do not have privileges to create views in MySQL. If you try to execute CREATE...