{"id":9644,"date":"2026-06-03T08:01:07","date_gmt":"2026-06-03T06:01:07","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9644"},"modified":"2026-06-03T08:01:08","modified_gmt":"2026-06-03T06:01:08","slug":"cum-sa-permiteti-unei-adrese-ip-externe-sa-se-conecteze-la-o-baza-de-date-mysql","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/","title":{"rendered":"Cum s\u0103 permite\u021bi unei adrese IP externe s\u0103 se conecteze la o baz\u0103 de date MySQL"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">If you need to connect to your MySQL database from an external location, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A desktop application<\/li>\n\n\n\n<li>A CRM or ERP system<\/li>\n\n\n\n<li>A development environment<\/li>\n\n\n\n<li>An office network<\/li>\n\n\n\n<li>A local computer<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">you must first authorize the external IP address that will be connecting to the database.<\/p>\n\n\n\n<\/div>\n\n<div id=\"mybox-4141818506\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">For security reasons, database access is restricted by default and only approved IP addresses can establish remote connections.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/#Step_1_Open_the_Databases_Section\" >Step 1: Open the Databases Section<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/#Step_2_Add_a_New_IP_Address\" >Step 2: Add a New IP Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/#Step_3_Enter_the_IP_Address\" >Step 3: Enter the IP Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/#Step_4_Save_the_Changes\" >Step 4: Save the Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/#Connecting_to_the_Database\" >Connecting to the Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/#Finding_Your_Public_IP_Address\" >Finding Your Public IP Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/#Important_Notes\" >Important Notes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-allow-an-external-ip-address-to-connect-to-a-mysql-database\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Open_the_Databases_Section\"><\/span>Step 1: Open the Databases Section<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to the <strong>mybox Panel<\/strong> and navigate to:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Databases \u2192 MySQL Remote Access<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Add_a_New_IP_Address\"><\/span>Step 2: Add a New IP Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Click the:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>+ Add<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A form will appear allowing you to enter the details of the external connection.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Enter_the_IP_Address\"><\/span>Step 3: Enter the IP Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the <strong>IP Address<\/strong> field, enter the public IP address that should be allowed to connect to the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1.2.3.4<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also add an optional description to help identify the purpose of the entry.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Examples:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Office<br>Home<br>Development PC<br>Accounting Software<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This can be useful when managing multiple authorized IP addresses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Save_the_Changes\"><\/span>Step 4: Save the Changes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After saving the new entry, the IP address will be added to the remote access whitelist.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The server configuration may take several minutes to update.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Connecting_to_the_Database\"><\/span>Connecting to the Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the changes have been applied, you can connect to the database from the authorized location using your database credentials:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Database host<\/li>\n\n\n\n<li>Database name<\/li>\n\n\n\n<li>Database username<\/li>\n\n\n\n<li>Database password<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Example connection parameters:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Host: database-host.mysql.mybox.com<br>Database: my_database<br>Username: my_user<br>Password: ********<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Finding_Your_Public_IP_Address\"><\/span>Finding Your Public IP Address<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you are unsure of your current public IP address, you can check it using an online service such as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;whatismyipaddress.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;ifconfig.me<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure you add the public IP address of the network that will be connecting to the database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Important_Notes\"><\/span>Important Notes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Only authorized IP addresses can establish remote database connections.<\/li>\n\n\n\n<li>If your Internet provider changes your public IP address dynamically, you may need to update the whitelist periodically.<\/li>\n\n\n\n<li>Removing an IP address from the list immediately prevents future connections from that location.<\/li>\n\n\n\n<li>For security reasons, only add IP addresses that genuinely require access.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To enable remote database access:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the mybox Panel.<\/li>\n\n\n\n<li>Open <strong>Databases \u2192 MySQL Remote Access<\/strong>.<\/li>\n\n\n\n<li>Click <strong>+ Add<\/strong>.<\/li>\n\n\n\n<li>Enter the external IP address that should be allowed to connect.<\/li>\n\n\n\n<li>Save the changes.<\/li>\n\n\n\n<li>Wait a few minutes for the configuration to be applied.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Afterward, applications connecting from the approved IP address will be able to access the database using the appropriate connection credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[9],"manual_kb_tag":[5057,5058,5059,5060,5061,2510,4771,5054,5055,5056],"class_list":["post-9644","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-databases","manual_kb_tag-remote-database-connection","manual_kb_tag-authorize-ip-address","manual_kb_tag-remote-access-whitelist","manual_kb_tag-add-ip-address","manual_kb_tag-allow-external-ip","manual_kb_tag-ip-whitelist","manual_kb_tag-public-ip-address","manual_kb_tag-remote-mysql-access","manual_kb_tag-mysql-remote-access","manual_kb_tag-remote-database-access"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9644\/revisions"}],"predecessor-version":[{"id":9645,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9644\/revisions\/9645"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=9644"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9644"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=9644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}