{"id":121,"date":"2020-04-09T20:21:51","date_gmt":"2020-04-09T13:21:51","guid":{"rendered":"http:\/\/naitinoi.com\/?p=121"},"modified":"2021-01-17T23:48:07","modified_gmt":"2021-01-17T16:48:07","slug":"how-to-install-mariadb-on-centos-7","status":"publish","type":"post","link":"https:\/\/omtel.ltd\/index.php\/2020\/04\/09\/how-to-install-mariadb-on-centos-7\/","title":{"rendered":"How To Install MariaDB on CentOS 7"},"content":{"rendered":"\n<p>[root@voice teee]# yum -y install mariadb-server mariadb.x86_64 mariadb-devel.x86_64 mariadb-libs.x86_64<\/p>\n\n\n\n<p>[root@voice teee]# systemctl restart mariadb<br>[root@voice teee]# netstat -lntup<br>Active Internet connections (only servers)<br>Proto Recv-Q Send-Q Local Address Foreign Address State PID\/Program name<br>tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 31899\/mysqld<\/p>\n\n\n\n<p>[root@voice teee]# mysql_secure_installation<br>Enter current password for root (enter for none):<br>Set root password? [Y\/n] y<br>New password:<br>Re-enter new password:<br>Remove anonymous users? [Y\/n] y<br>Disallow root login remotely? [Y\/n] y<br>Remove test database and access to it? [Y\/n] y<br>Reload privilege tables now? [Y\/n] y<\/p>\n\n\n\n<p>[root@voice teee]# mysql -u root -p<br>Enter password:<br>Welcome to the MariaDB monitor. Commands end with ; or \\g.<br>Your MariaDB connection id is 10<br>Server version: 5.5.60-MariaDB MariaDB Server<\/p>\n\n\n\n<p>Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.<\/p>\n\n\n\n<p>Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the current input statement.<\/p>\n\n\n\n<p>MariaDB [(none)]&gt; show databases;<br>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br>| Database |<br>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br>| information_schema |<br>| mysql |<br>| performance_schema |<br>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br>3 rows in set (0.00 sec)<\/p>\n\n\n\n<p>[root@voice teee]# systemctl enable mariadb<\/p>\n\n\n\n<p>[root@voice teee]# systemctl status mariadb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@voice teee]# yum -y install mariadb-server mariad [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6,1],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-linux","category-mysql","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":1,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}