How to manage remote MySQL connections on Hostinger
To manage remote MySQL connections on Hostinger, you need to enable remote access through the hPanel control panel, configure allowed IP addresses, and update your database connection settings. This allows external applications to connect to your MySQL database hosted on Hostinger servers.
Prerequisites
- Active Hostinger hosting account
- MySQL database already created
- Basic understanding of database connections
- Your server's IP address or domain
Step-by-Step Instructions
Access MySQL Databases in hPanel
Locate Your Target Database
Enable Remote MySQL Access
Configure Allowed IP Addresses
% to allow all IPs (not recommended for security). Click Add to save the IP configuration.Note Remote Connection Details
Test the Remote Connection
SELECT 1 to verify the connection works properly.Update Application Configuration
Monitor and Manage Access
Common Issues & Troubleshooting
Connection refused or timeout errors
Verify that your IP address is correctly added to the allowed list in hPanel. Check if your firewall or network is blocking outbound connections on port 3306. Confirm you're using the correct remote hostname, not localhost or your domain name.
Access denied for user error
Double-check your database username and password in hPanel. Ensure you're using the correct database user that has remote access privileges. Try recreating the database user if the credentials appear correct but still fail.
Remote MySQL option not available
Remote MySQL access is not available on all Hostinger plans. Upgrade to a Business or higher plan that supports remote database connections. Contact Hostinger support to confirm your plan includes remote MySQL access.
Can connect but cannot see tables or data
Check database user permissions in hPanel. Ensure the user has appropriate privileges (SELECT, INSERT, UPDATE, DELETE) for the database. Verify you're connecting to the correct database name and that tables exist in that specific database.