How to set up remote MySQL access in Hostinger

Allow an IP address to connect to a Hostinger MySQL database from your computer or another server.

Updated 1 week ago

Set up remote MySQL access in Hostinger to let your computer or another server connect to your database. Remote access is set per database in the External connections card of the database’s page, where you allow a specific IP address or any IP address. Then connect using the hostname or IP address shown in the Allow IP address window, with port 3306.

Before you start

Allow a remote connection to a Hostinger MySQL database

  1. Go to Websites → Manage site and select Databases in the left sidebar.
  2. Click › next to the database you want to access remotely.
  3. In the External connections card, click Allow IP.
  4. In the Allow IP address window, choose who can connect:
    • Specific IP address – enter the IP address the connection comes from in the IP (IPv4 or IPv6) field.
    • Any IP address – anyone with the database username and password can connect.
  5. Click Allow IP.

Connect to a Hostinger MySQL database remotely

The Allow IP address window shows the two values you can use as the host in your remote application: the Hostname, such as srv123.hstgr.io, and the server IP address. Click the copy icon next to either value to copy it.

The default port for remote connections is 3306, as shown in the Connection card of the database’s page.

If you need to connect to a Microsoft SQL Server database instead of MySQL, see how to connect to the Microsoft SQL Server ODBC at Hostinger.

Your database now accepts connections from the allowed IP address.