{"id":2781,"date":"2022-12-03T19:49:56","date_gmt":"2022-12-04T03:49:56","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=2781"},"modified":"2022-12-03T19:49:56","modified_gmt":"2022-12-04T03:49:56","slug":"install-mariadb-and-php-my-admin","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/install-mariadb-and-php-my-admin\/","title":{"rendered":"Install MariaDB and PHP My Admin"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">MariaDB <\/h2>\n\n\n\n<p>To install the database engine use the following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install mariadb-server php-mysql -y\nsudo service apache2 restart <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">PHPMyAdmin <\/h2>\n\n\n\n<p>Add PHPMyAdmin installation packet manager<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> sudo apt install phpmyadmin <\/pre>\n\n\n\n<p> Select Apache Setup for LAMP Server<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"542\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/06\/MyPHPAdmin_Setup.png\" alt=\"Select Apache Setup\" class=\"wp-image-775\"\/><\/figure>\n\n\n\n<p> Then configure database<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"548\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/06\/MyPHPAdmin_DbConfig.png\" alt=\"Then configure database\n\" class=\"wp-image-777\"\/><\/figure>\n\n\n\n<p>Create password <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"544\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/06\/MyPHPAdmin_DbPassword.png\" alt=\"\" class=\"wp-image-779\"\/><\/figure>\n\n\n\n<p><br>then setup database <br>Enter MySQL &#8216;root&#8217; level password <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mysql -u root <br>[MariaDB] use mysql; <br>[MariaDB] update user set plugin='' where User='root'; <br>[MariaDB] flush privileges; <br>[MariaDB] \\q <br>#This needs to be followed by the following command: mysql_secure_installation <\/pre>\n\n\n\n<p>Delete the default mysql root user and create a new mysql root user,  for use by the webserver and php scripts. <\/p>\n\n\n\n<p>You will be asked Enter current password for root (enter for none): \u2014 press Enter.<br>Type in Y and press Enter to Set root password?.<br>Type in a password at the New password: prompt, and press Enter. Important: remember this root password, as you will need it later to set up WordPress.<br>Remove anonymous users. Y<br>Disallow root login remotely. Y<br>Remove test database and access to it. Y<br>Reload privilege tables now. Y<br>#The message will appear:<br>All done!  Thanks for using MariaDB!.<\/p>\n\n\n\n<p>Web server will be connected to PHP and MySQL<br>Test PHP server at  url :&nbsp;<code>http:\/\/127.0.0.1\/phpmyadmin<\/code> <br>login user: root Password: entered in previous steps<br>If there is no connection to PHP then move phpmyadmin config file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/etc\/apache2\/conf-available<br>sudo ln -s ..\/..\/phpmyadmin\/apache.conf phpmyadmin.conf<br>cd \/etc\/apache2\/conf-enabled<br>sudo ln -s ..\/conf-available\/phpmyadmin.conf phpmyadmin.conf<br>sudo service apache2 restart<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>MariaDB To install the database engine use the following command sudo apt-get install mariadb-server php-mysql -y sudo service apache2 restart PHPMyAdmin Add PHPMyAdmin installation packet manager sudo apt install phpmyadmin Select Apache Setup for LAMP Server Then configure database Create password then setup database Enter MySQL &#8216;root&#8217; level password sudo mysql -u root [MariaDB] use &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/install-mariadb-and-php-my-admin\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Install MariaDB and PHP My Admin&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2781","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=2781"}],"version-history":[{"count":1,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2781\/revisions"}],"predecessor-version":[{"id":2783,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2781\/revisions\/2783"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=2781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}