{"id":1023,"date":"2018-05-17T17:00:57","date_gmt":"2018-05-17T17:00:57","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=1023"},"modified":"2020-08-08T04:45:41","modified_gmt":"2020-08-08T04:45:41","slug":"how-to-configure-remote-access-to-mysql-database-in-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-configure-remote-access-to-mysql-database-in-cpanel\/","title":{"rendered":"How to Configure Remote Access to MySQL Database in cPanel"},"content":{"rendered":"<h3 id=\"general-information\">General information<\/h3>\n<p style=\"text-align: justify;\">In this article, we will shed some light on a very useful feature. One of the most useful features of cPanel is the ability to enable remote access to your MySQL Databases.<\/p>\n<p style=\"text-align: justify;\">This is important because some third party applications or web developers, for example, \u00a0might need access to your database from their server or their local computer. In order for them to do this securely, you need to add their IP Addresses to a whitelist. Additional privileges might be needed to allow further changes to the databases. In this case, you should contact your hosting provider and let them know exactly what you need.<\/p>\n<h3 id=\"how-to-configure-remote-access-to-mysql-database\">How to Configure Remote Access to MySQL Database<\/h3>\n<p style=\"text-align: justify;\">Here is how you go about doing this.<\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong> <a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\">Log in<\/a> to your cPanel account.<\/p>\n<p style=\"text-align: justify;\"><strong>2.<\/strong> Navigate to the <em>Database <\/em>section and click on <em>Remote MySQL<\/em> <em>\u00ae<\/em> .<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1949 size-full\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Databases-Remote-MySQL.png\" alt=\"\" width=\"2046\" height=\"380\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Databases-Remote-MySQL.png 2046w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Databases-Remote-MySQL-300x56.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Databases-Remote-MySQL-768x143.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Databases-Remote-MySQL-1024x190.png 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Databases-Remote-MySQL-50x9.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Databases-Remote-MySQL-60x11.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Databases-Remote-MySQL-100x19.png 100w\" sizes=\"auto, (max-width: 2046px) 100vw, 2046px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong>3.<\/strong> In the <em>Add Access Host <\/em>box, you need to enter each individual IP Address and click on <em>Add Host.\u00a0<\/em>You can get your own IP address at <a href=\"http:\/\/ip4.me\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">ip4.me<\/a>. If your web developer is the person who requires access, ask them to visit that URL and to provide you with their own IP address.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1950\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Remote-MySQL-Add-Access-Host-1024x370.png\" alt=\"\" width=\"643\" height=\"232\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Remote-MySQL-Add-Access-Host-1024x370.png 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Remote-MySQL-Add-Access-Host-300x109.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Remote-MySQL-Add-Access-Host-768x278.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Remote-MySQL-Add-Access-Host-50x18.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Remote-MySQL-Add-Access-Host-60x22.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Remote-MySQL-Add-Access-Host-100x36.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Remote-MySQL-Add-Access-Host.png 1382w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p style=\"text-align: justify;\">Bellow this section you will see a list with all the added access hosts (or IPs). You can also remove IP addresses, if needed.<\/p>\n<p style=\"text-align: justify;\">Another interesting feature is the possibility to add the \u201c%\u201d wildcard. This allows you to add an entire IP range to the access hosts list. While it may seem like an easy \u201cfix\u201d, the usage of the % is not advisable, as it presents some security risks.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--danger    \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tMake sure you always take into account the security issues when allowing third-party IP Addresses access to your database. This type of vulnerability may be exploited by people looking to steal sensitive or proprietary customer information.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h3 id=\"how-to-connect-remotely-to-mysql-database-using-mysql-workbench\" style=\"text-align: justify;\">How to connect remotely to MySQL Database using MySQL Workbench<\/h3>\n<p>MySQL Workbench is a visual tool for database architects and developers. MySQL Workbench provides data modeling, SQL development, and comprehensive database administration tools, and much more. MySQL Workbench is available on Windows, Linux, and Mac OS X. You can <a href=\"https:\/\/dev.mysql.com\/downloads\/workbench\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">download it here<\/a>.<\/p>\n<p>Once MySQL Workbench is installed, please follow the steps below to connect to your database:<\/p>\n<ol class=\"article_list\">\n<li>Open\u00a0<strong>MySQL Workbench<\/strong>.<\/li>\n<li>Click\u00a0<strong>New Connection<\/strong>\u00a0towards the bottom left of MySQL Workbench.<\/li>\n<li>In the \u201c<em>Set up a New Connection Dialogue<\/em>\u201d box, Type your Database connection credentials. The credentials will be like the following:<strong>Connection Name:\u00a0<\/strong>You can name this whatever you like.<br \/>\n<strong>Connection Method:\u00a0<\/strong>Standard (TCP\/IP).<br \/>\n<strong>Hostname:\u00a0<\/strong>You can use your domain our your <a href=\"https:\/\/chemicloud.com\/kb\/article\/what-is-my-servers-ip-address\/\" target=\"_blank\" rel=\"noopener noreferrer\">server&#8217;s IP addres<\/a>s.<br \/>\n<strong>Port:\u00a0<\/strong>3306<br \/>\n<strong>Username: <\/strong>the user you created for the database.<br \/>\n<strong>Password: <\/strong>the password for the database user that was created.<br \/>\n<strong>Default Schema:\u00a0<\/strong>This can be left blank.<\/li>\n<li>Click\u00a0<strong>Test Connection<\/strong>.<\/li>\n<li>Type your password and click the \u201c<em>Save Password in Vault<\/em>\u201d checkbox. Click <strong>Ok<\/strong>.<\/li>\n<li>MySQL Workbench should say \u201c<em>Connection parameters are correct<\/em>\u201c. Click\u00a0<strong>Ok<\/strong>.<\/li>\n<li>Click\u00a0<strong>Ok<\/strong>\u00a0again to accept the connection settings.<\/li>\n<li>Now under the SQL Development section, you will see your connection listed in the Open Connection to Start Querying box. Click your newly created account.<\/li>\n<li>Now you will see the databases list in the area on the left.<\/li>\n<\/ol>\n<p>That&#8217;s all! Now you know how to connect remotely to your MySQL database.<\/p>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>General information In this article, we will shed some light on a very useful feature. One of the most useful features of cPanel is the ability to enable remote access to your MySQL Databases. This is important because some third party applications or web developers, for example, \u00a0might need access&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[38],"ht-kb-tag":[],"class_list":["post-1023","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-mysql"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=1023"}],"version-history":[{"count":9,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1023\/revisions"}],"predecessor-version":[{"id":3284,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1023\/revisions\/3284"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=1023"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=1023"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}