{"id":7043,"date":"2017-10-09T17:19:45","date_gmt":"2017-10-09T09:19:45","guid":{"rendered":"http:\/\/rmohan.com\/?p=7043"},"modified":"2017-10-09T17:19:45","modified_gmt":"2017-10-09T09:19:45","slug":"mariadb-centos-7-4","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7043","title":{"rendered":"Mariadb centos 7.4"},"content":{"rendered":"<p>Mariadb centos 7.4<\/p>\n<p>vi \/etc\/yum.repos.d\/Mariadb.repo<\/p>\n<p># MariaDB 10.1 CentOS repository list<br \/>\n# http:\/\/downloads.mariadb.org\/mariadb\/repositories\/<br \/>\n[mariadb]<br \/>\nname = MariaDB<br \/>\nbaseurl = http:\/\/yum.mariadb.org\/10.1\/centos7-amd64<br \/>\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB<br \/>\ngpgcheck=1<\/p>\n<p>yum -y install MariaDB-server MariaDB-client<\/p>\n<p>systemctl start mysql.service<\/p>\n<p>mysql_secure_installation<\/p>\n<p>Enter current password for root (enter for none):<\/p>\n<p>Set root password? [Y\/n] y<\/p>\n<p>New password:<\/p>\n<p>Re-enter new password:<\/p>\n<p>Remove anonymous users? [Y\/n] y<\/p>\n<p>Disallow root login remotely? [Y\/n] n<\/p>\n<p>Remove test database and access to it? [Y\/n] y<\/p>\n<p>Reload privilege tables now? [Y\/n] y<\/p>\n<p>firewall<\/p>\n<p>firewall-cmd &#8211;state<\/p>\n<p>not running?firewall<\/p>\n<p>systemctl start firewalld<\/p>\n<p>running<\/p>\n<p>3306<br \/>\nfirewall-cmd &#8211;zone=public &#8211;add-port=3306\/tcp &#8211;permanent<br \/>\nfirewall-cmd &#8211;reload<\/p>\n<p>2. root MariaDB<\/p>\n<p>Mariadb<br \/>\nmysql -uroot -p<br \/>\nuse mysql;<br \/>\nGrant all on *.* to &#8216;root&#8217;@&#8217;%&#8217; identified by &#8216;root@test123&#8217; with grant option;<br \/>\nflush privileges;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mariadb centos 7.4<\/p>\n<p>vi \/etc\/yum.repos.d\/Mariadb.repo<\/p>\n<p># MariaDB 10.1 CentOS repository list # http:\/\/downloads.mariadb.org\/mariadb\/repositories\/ [mariadb] name = MariaDB baseurl = http:\/\/yum.mariadb.org\/10.1\/centos7-amd64 gpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB gpgcheck=1<\/p>\n<p>yum -y install MariaDB-server MariaDB-client<\/p>\n<p>systemctl start mysql.service<\/p>\n<p>mysql_secure_installation<\/p>\n<p>Enter current password for root (enter for none):<\/p>\n<p>Set root password? [Y\/n] y<\/p>\n<p>New password:<\/p>\n<p>Re-enter new password:<\/p>\n<p>Remove anonymous users? [Y\/n] y<\/p>\n<p>Disallow [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,72],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7043"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7043"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7043\/revisions"}],"predecessor-version":[{"id":7044,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7043\/revisions\/7044"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}