{"id":2306,"date":"2019-07-19T10:18:22","date_gmt":"2019-07-19T10:18:22","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=2306"},"modified":"2020-03-25T14:42:29","modified_gmt":"2020-03-25T14:42:29","slug":"what-is-my-mysql-server-hostname","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/what-is-my-mysql-server-hostname\/","title":{"rendered":"What is my MySQL Server Hostname?"},"content":{"rendered":"<p>If you want to connect to your database from an application or a PHP script on your ChemiCloud hosting account, you can simply use <strong>localhost<\/strong>\u00a0as MySQL hostname.<\/p>\n<p>If you&#8217;re accessing your database from a remote server, you need to grant it access first following the instructions in our\u00a0<a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-configure-remote-access-to-mysql-database-in-cpanel\/\" target=\"_blank\" rel=\"noopener noreferrer\">Remote MySQL tutorial<\/a> and then use your domain name as the hostname.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to connect to your database from an application or a PHP script on your ChemiCloud hosting account, you can simply use localhost\u00a0as MySQL hostname. If you&#8217;re accessing your database from a remote server, you need to grant it access first following the instructions in our\u00a0Remote MySQL tutorial&#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-2306","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\/2306","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=2306"}],"version-history":[{"count":1,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2306\/revisions"}],"predecessor-version":[{"id":2307,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2306\/revisions\/2307"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=2306"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=2306"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=2306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}