{"id":1662,"date":"2020-01-10T00:57:13","date_gmt":"2020-01-10T00:57:13","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=1662"},"modified":"2020-05-07T18:33:25","modified_gmt":"2020-05-07T18:33:25","slug":"creating-a-new-mysql-maria-data-base","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=1662","title":{"rendered":"Creating a new MySQL Maria Data Base"},"content":{"rendered":"\n\n\n<h2 class=\"wp-block-heading\">Creating a new MySQL Maria database<\/h2>\n\n\n\n<div class=\"wp-block-media-text alignwide\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Mariadb-seal-1280x720-1-1024x576.png\" alt=\"\" class=\"wp-image-5298\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Mariadb-seal-1280x720-1-1024x576.png 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Mariadb-seal-1280x720-1-300x169.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Mariadb-seal-1280x720-1-768x432.png 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/05\/Mariadb-seal-1280x720-1.png 1280w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-normal-font-size\">WordPress uses a relational database to manage information for the site (text, images, animations, videos, etc.) and also for its users (administrators, contributors, subscribers, editors, etc.). <\/p>\n<\/div><\/div>\n\n\n\n<p>We already have <a rel=\"noreferrer noopener\" aria-label=\"MariaDB  (opens in a new tab)\" href=\"\/installing-mysql\/\" target=\"_blank\">MariaDB <\/a>(a fork of MySQL) installed on our Linux <a rel=\"noreferrer noopener\" aria-label=\"CentOS  (opens in a new tab)\" href=\"\/installing-centos-7\/\" target=\"_blank\">CentOS <\/a>, which can provide this functionality, the only thing we have to do now is to go ahead and create a new database that will be used with WordPress, and also assign permissions to a particular user for WordPress to be able to manage that database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using phpMyAdmin to create a new DB<\/h2>\n\n\n\n<p>The easiest way to create a new MySQL (Maria database) is using the GUI provided by <strong><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"\/phpmyadmin\/\" target=\"_blank\">phpMyAdmin<\/a><\/strong>, for those of you who prefer to create the DB using the CLI <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"\/mariadb-create-table\/\" target=\"_blank\">here<\/a> you can find all the commands.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"711\" height=\"347\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-01.jpg\" alt=\"\" class=\"wp-image-1668\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-01.jpg 711w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-01-300x146.jpg 300w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/a><figcaption>phpMyAdmin new database<\/figcaption><\/figure><\/div>\n\n\n\n<p>Only two things have to be chosen when creating a brand new MySQL (MariaDB) database, the database <strong>name<\/strong> and the <strong>collation<\/strong>, see below screenshots taken from phpMyAdmin.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-02.jpg\" alt=\"\" class=\"wp-image-1678\" width=\"747\" height=\"214\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-02.jpg 996w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-02-300x86.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-02-768x220.jpg 768w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/a><figcaption>phpMyAdmin choose database name<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-03.jpg\" alt=\"\" class=\"wp-image-1683\" width=\"575\" height=\"452\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-03.jpg 767w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-03-300x236.jpg 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/a><figcaption>Maria database select collation UTF8 MB4 unicode<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-04.jpg\" alt=\"\" class=\"wp-image-1688\" width=\"740\" height=\"233\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-04.jpg 986w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-04-300x95.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-04-768x242.jpg 768w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/a><figcaption>phpMyAdmin create database<\/figcaption><\/figure><\/div>\n\n\n\n<p>Immediately after the database creation you will be located inside the database, as you can imagine the new DB is empty, that means no tables will be found.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-05.jpg\" alt=\"\" class=\"wp-image-1691\" width=\"671\" height=\"263\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-05.jpg 895w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-05-300x118.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/phpMyAdmin-MariaDB-MySQL-creating-new-data-base-05-768x301.jpg 768w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/a><figcaption>The new database is blank (no tables)<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Where to go next?<\/h2>\n\n\n\n<p>The main advantage of using a CMS (content&nbsp;management system) when creating a new website is that you don&#8217;t have to worry for the database and its tables, everything will be managed automatically for us once the configuration is done.<\/p>\n\n\n\n<p>The next step is to create a user and assign permissions over the database, that user will be used by WordPress, once they are configured to work together you will see all the tables populated automatically.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"\/mariadb-admin-user\/\">Using the MariaDB root account to integrate Worpress with its database<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Creating a new MySQL Maria database WordPress uses a relational database to manage information for the site (text, images, animations, videos, etc.) and also for its users (administrators, contributors, subscribers, editors, etc.). We already have MariaDB (a fork of MySQL) installed on our Linux CentOS , which can provide this functionality, the only thing we &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=1662\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Creating a new MySQL Maria Data Base&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1662","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/1662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1662"}],"version-history":[{"count":50,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/1662\/revisions"}],"predecessor-version":[{"id":5302,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/1662\/revisions\/5302"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}