3 min read Sep 26, 2026

How to Allow Remote MySQL Connections in cPanel

Connect to your cPanel MySQL database from your computer or another server: add your IP in Remote Database Access, then connect with HeidiSQL, MySQL Workbench or DBeaver.

FimuroHost Team

FimuroHost Team

Technical Writer

Share Article

Normally only websites on the same server can reach your databases, which is the safest setup. Sometimes you need to connect from outside: to manage data with a desktop tool such as MySQL Workbench, HeidiSQL or DBeaver, or to let an app on another server read the database. cPanel’s Remote Database Access tool lets you allow specific IP addresses to connect.

Before you start

  • Find the public IP address of the computer or server that will connect. On your computer, search “what is my IP” in a browser.
  • Many home and mobile connections in Bangladesh change IP address often. If yours does, you will need to update the allowed address when it changes.
  • Create the database and user first with the Database Wizard.

Allow an IP address

  1. Log in to your FimuroHost client area at https://app.fimurohost.com.
  2. Go to Services and select your cPanel Hosting plan.
  3. Click Login to cPanel. cPanel opens in a new tab, already signed in.
  4. In the Databases section, click Remote Database Access (called Remote MySQL on older versions).
  5. In Host, enter the IP address, for example 203.0.113.25. You can use % as a wildcard, for example 203.0.113.% for a whole range.
  6. Optionally add a Comment such as Office PC so you remember what it is.
  7. Click Add Host.

The address appears under Access Hosts. It applies to all databases and database users in your cPanel account; each connection still needs a valid username and password.

Avoid entering only %, which allows every IP address in the world to try your database passwords.

Connection details

SettingValue
HostYour server hostname (from the welcome email), your domain name, or the shared IP address shown in cPanel’s General Information
Port3306
UsernameThe full database user, e.g. username_dbuser
PasswordThat user’s password
DatabaseThe full database name, e.g. username_dbname

Note that localhost only works for code running on the cPanel server itself. From your computer you must use the server’s hostname or IP.

Connect with a desktop tool (example: MySQL Workbench)

  1. Click the + next to MySQL Connections.
  2. Enter a name, the hostname, port 3306 and the username.
  3. Click Store in Vault to save the password, then Test Connection.
  4. Click OK and open the connection.

If it still does not connect

  • “Access denied for user”: check the full username with prefix and the password, and that the user has been added to the database.
  • “Host … is not allowed to connect”: the IP you added does not match your current public IP. Check it again and add the new one.
  • Timeout / cannot connect on port 3306: the server firewall may not allow remote MySQL connections for your plan. Open a ticket with your IP address and we will let you know whether remote access can be enabled.
  • If your plan includes SSH access, a safer alternative is an SSH tunnel: most tools (Workbench, HeidiSQL, DBeaver) have an “SSH” option where you enter your cPanel username and SSH details, and then connect to 127.0.0.1:3306 through it. No IP needs to be added.

Security tips

  • Remove access hosts you no longer need.
  • Create a separate database user with only the privileges the remote app needs.
  • Never allow remote access for the database user your live website uses, if you can avoid it.

Need help?

If anything in this guide does not match what you see, or you get stuck, open a support ticket (choose the Support department) or message us on WhatsApp at 01818160926. Tell us your domain name and what you have tried so far, and never send your password in a ticket or chat.

FimuroHost Team

Written by

FimuroHost Team

Technical Writer