{"id":1424,"date":"2019-02-08T10:36:02","date_gmt":"2019-02-08T10:36:02","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583546-how-to-set-up-remote-mysql-access-in-hostinger\/"},"modified":"2026-11-25T08:35:07","modified_gmt":"2026-11-25T08:35:07","slug":"1583546-how-to-set-up-remote-mysql-access-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583546-how-to-set-up-remote-mysql-access-in-hostinger\/","title":{"rendered":"How to set up remote MySQL access in Hostinger"},"content":{"rendered":"<p>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 <b>External connections<\/b> card of the database\u2019s page, where you allow a specific IP address or any IP address. Then connect using the hostname or IP address shown in the <b>Allow IP address<\/b> window, with port 3306.<\/p>\n<h3>Before you start<\/h3>\n<ul>\n<li>If you don\u2019t have a database yet, see <a data-click-id=\"hgr-post-content-link-how-to-create-mysql-database\" href=\"https:\/\/www.hostinger.com\/support\/1583542-how-to-create-a-new-mysql-database-in-hostinger\/\">how to create MySQL database<\/a> and <a data-click-id=\"hgr-post-content-link-how-to-manage-mysql-databases-in-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/1864454-how-to-manage-mysql-databases-in-hostinger\/\">how to manage MySQL databases in Hostinger<\/a>.<\/li>\n<\/ul>\n<h2 id=\"h-allow-a-remote-connection-to-a-hostinger-mysql-database\">Allow a remote connection to a Hostinger MySQL database<\/h2>\n<ol>\n<li>Go to <a data-click-id=\"hgr-post-content-link-websites\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\"><b>Websites<\/b><\/a> \u2192 <b>Manage site<\/b> and select <b>Databases<\/b> in the left sidebar.<\/li>\n<li>Click \u203a next to the database you want to access remotely.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26009\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11.png\" alt=\"\" width=\"1203\" height=\"244\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11.png 1203w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11-300x61.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11-1024x208.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-11-768x156.png 768w\" sizes=\"(max-width: 1203px) 100vw, 1203px\" \/><\/li>\n<li>In the <b>External connections<\/b> card, click <b>Allow IP<\/b>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26019\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-31.png\" alt=\"\" width=\"1162\" height=\"697\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-31.png 1162w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-31-300x180.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-31-1024x614.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-31-768x461.png 768w\" sizes=\"(max-width: 1162px) 100vw, 1162px\" \/><\/li>\n<li>In the <b>Allow IP address<\/b> window, choose who can connect:\n<ul>\n<li><b>Specific IP address<\/b> \u2013 enter the IP address the connection comes from in the <b>IP (IPv4 or IPv6)<\/b> field.<\/li>\n<li><b>Any IP address<\/b> \u2013 anyone with the database username and password can connect.<\/li>\n<\/ul>\n<\/li>\n<li>Click <b>Allow IP<\/b>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26020\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-31_1.png\" alt=\"\" width=\"556\" height=\"499\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-31_1.png 556w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_15-31_1-300x269.png 300w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/li>\n<\/ol>\n<h2 id=\"h-connect-to-a-hostinger-mysql-database-remotely\">Connect to a Hostinger MySQL database remotely<\/h2>\n<p>The <b>Allow IP address<\/b> window shows the two values you can use as the host in your remote application: the <b>Hostname<\/b>, such as <code>srv123.hstgr.io<\/code>, and the server <b>IP address<\/b>. Click the copy icon next to either value to copy it.<\/p>\n<p>The default port for remote connections is <a data-click-id=\"hgr-post-content-link-3306\" href=\"https:\/\/www.hostinger.com\/support\/1583226-which-database-management-system-is-used-at-hostinger\/#h-what-mysql-port-is-used-at-hostinger\">3306<\/a>, as shown in the <b>Connection<\/b> card of the database\u2019s page.<\/p>\n<p>If you need to connect to a Microsoft SQL Server database instead of MySQL, see <a data-click-id=\"hgr-post-content-link-how-to-connect-to-the-microsoft-sql-server-odbc-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/8583784-how-to-connect-to-the-microsoft-sql-server-odbc-at-hostinger\/\">how to connect to the Microsoft SQL Server ODBC at Hostinger<\/a>.<\/p>\n<p>Your database now accepts connections from the allowed IP address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Allow an IP address to connect to a Hostinger MySQL database from your computer or another server.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[242],"tags":[],"class_list":["post-1424","post","type-post","status-publish","format-standard","hentry","category-remote-mysql-connection"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583546-how-to-set-up-remote-mysql-access-in-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583546-como-configurar-una-conexion-remota-de-mysql-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583546-comment-configurer-un-acces-mysql-a-distance-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583546-cara-setup-akses-remote-mysql-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/1583546-como-configurar-o-acesso-remoto-ao-mysql-no-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583546-\u044f\u043a-\u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438-\u0432\u0456\u0434\u0434\u0430\u043b\u0435\u043d\u0438\u0439-\u0434\u043e\u0441\u0442\u0443\u043f-\u0434\u043e-m","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1424"}],"version-history":[{"count":8,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1424\/revisions"}],"predecessor-version":[{"id":26021,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1424\/revisions\/26021"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}