{"id":3577,"date":"2022-07-29T20:09:11","date_gmt":"2022-07-29T20:09:11","guid":{"rendered":"https:\/\/libertyhost.ch\/?p=3577"},"modified":"2023-09-23T17:04:26","modified_gmt":"2023-09-23T17:04:26","slug":"how-do-i-connect-my-database","status":"publish","type":"post","link":"https:\/\/libertyhost.ch\/help-center\/how-do-i-connect-my-database\/","title":{"rendered":"How do I connect my database?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3577\" class=\"elementor elementor-3577\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3191a8f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3191a8f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-58037ab\" data-id=\"58037ab\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-37f15c6 elementor-widget elementor-widget-text-editor\" data-id=\"37f15c6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: center;\">Learn how to connect your database.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-903e68a elementor-widget elementor-widget-text-editor\" data-id=\"903e68a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ol><li>First, you need to create a <a title=\"Create Database User and Database\" href=\"https:\/\/libertyhost.ch\/help-center\/products\/hosting\/how-do-i-add-a-database\/\">Database User and Database<\/a>. <\/li><li>From the <a title=\"My LibertyHost Control Panel\" href=\"https:\/\/mylibertyhost.ch\" target=\"_blank\" rel=\"noopener\"><em><strong>Control Panel<\/strong><\/em><\/a>, you can locate your database name and username<\/li><li>Go to<em><strong> Sites<\/strong><\/em><\/li><li>Select<em><strong> Databases<\/strong><\/em> from the left menu<em><strong><br \/><\/strong><\/em><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1b6390d elementor-widget elementor-widget-image\" data-id=\"1b6390d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/libertyhost.ch\/wp-content\/uploads\/2022\/05\/DB_connect.jpg\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTI1OSwidXJsIjpmYWxzZX0%3D\">\n\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/libertyhost.ch\/wp-content\/uploads\/2022\/05\/DB_connect.jpg\" title=\"\" alt=\"Database Connection - LiberytHost\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-faa0c2b elementor-widget elementor-widget-text-editor\" data-id=\"faa0c2b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ol start=\"2\"><li>Open a text editor of your choice, we suggestion <strong>Sublime Text<\/strong>. <a href=\"https:\/\/www.sublimetext.com\/3\" target=\"_blank\" rel=\"noopener\">Download your free copy of Sublime Text today!<\/a><\/li><li>Open the WP-Config.php file or any other settings file. <em>The example below if a WP_config.php file.<\/em><\/li><li>Enter your Database Name, Username, Password and Host.<\/li><li>Your DB Host: 10.22.0.21<\/li><li>Save your file and upload<\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6f62ca1 elementor-widget elementor-widget-image\" data-id=\"6f62ca1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/libertyhost.ch\/wp-content\/uploads\/2022\/05\/WP_db_Connect.jpg\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTI2MywidXJsIjpmYWxzZX0%3D\">\n\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/libertyhost.ch\/wp-content\/uploads\/2022\/05\/WP_db_Connect.jpg\" title=\"\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">WP_Config.php File<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Learn how to create a database connection at the LibertyHost Help Center.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[5],"tags":[4],"class_list":["post-3577","post","type-post","status-publish","format-standard","hentry","category-hosting","tag-hosting"],"_links":{"self":[{"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/posts\/3577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/comments?post=3577"}],"version-history":[{"count":0,"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/posts\/3577\/revisions"}],"wp:attachment":[{"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/media?parent=3577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/categories?post=3577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/libertyhost.ch\/help-center\/wp-json\/wp\/v2\/tags?post=3577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}