{"id":1369,"date":"2020-04-17T13:29:25","date_gmt":"2020-04-17T11:29:25","guid":{"rendered":"https:\/\/itsimple.info\/?p=1369"},"modified":"2020-04-17T13:46:36","modified_gmt":"2020-04-17T11:46:36","slug":"how-to-update-mariadb-on-centos-7","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=1369","title":{"rendered":"How To Update MARIADB On CentOS 7"},"content":{"rendered":"\n<p>When having mysql server sometime it is smart to update the version all together, this are the steps on Linux CentOS 7 from ssh console:<\/p>\n\n\n\n<div class=\"wp-block-group has-vivid-cyan-blue-color has-text-color\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre>systemctl stop mariadb<\/pre>\n\n\n\n<pre>yum remove mariadb-server mariadb mariadb-libs<\/pre>\n\n\n\n<p class=\"has-text-color has-very-dark-gray-color\">To check The latest version on mariadb available from repository, browse to <a rel=\"noreferrer noopener\" href=\"http:\/\/yum.mariadb.org\" target=\"_blank\">http:\/\/yum.mariadb.org<\/a> and look for the latest version available, then change the version you want in the line : baseurl = http:\/\/yum.mariadb.org\/10.4\/centos7-amd64 .   on this tutorial it is 10.4<\/p>\n\n\n\n<pre>nano \/etc\/yum.repos.d\/MariaDB10.repo<\/pre>\n<\/div><\/div>\n\n\n\n<p>Copy &amp; paste this lines to the new repo file (MariaDB10.repo):<\/p>\n\n\n<pre>#http:\/\/mariadb.org\/mariadb\/repositories\/<br>#MariaDB 10.1 CentOS repository list - created 2016-01-18 09:58 UTC<br>[mariadb]<br>name = MariaDB<br>baseurl = http:\/\/yum.mariadb.org\/10.4\/centos7-amd64<br>gpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB<br>gpgcheck=1<\/pre>\n<p><\/p>\n\n\n<\/p>\n<p>Save and continue<\/p>\n<p>\n\n\n<p><\/p>\n<p><\/p>\n\n\n<div class=\"wp-block-group has-vivid-cyan-blue-color has-text-color\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre>yum clean all<br \/>yum -y install MariaDB-server MariaDB-client<br \/>systemctl start mariadb<br \/>systemctl enable mariadb<br \/>mysql_upgrade<br \/><br \/>or (if mysql password protected)<br \/><br \/>mysql_upgrade -u root -p<br \/><br \/>To check the current mysql version<br \/><br \/>mysql -V<\/pre>\n<p>\n\n\n\n<\/p>\n<p>\n<\/div><\/div>\n\n\n<p><\/p>\n<p><\/p>\n\n\n<\/p>\n<p>\n\n\n<p><\/p>\n<hr>\n<h3>Good Luck<\/h3>","protected":false},"excerpt":{"rendered":"<p>When having mysql server sometime it is smart to update the version all together, this are the steps on Linux CentOS 7 from ssh console: systemctl stop mariadb yum remove mariadb-server mariadb mariadb-libs To check The latest version on mariadb available from repository, browse to http:\/\/yum.mariadb.org and look for the latest version available, then change [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-1369","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1369"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1369\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}