{"id":1345,"date":"2014-11-14T23:05:29","date_gmt":"2014-11-15T05:05:29","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=1345"},"modified":"2019-10-30T04:21:55","modified_gmt":"2019-10-30T10:21:55","slug":"mariadb-an-alternate-for-mysql","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/mariadb-an-alternate-for-mysql\/","title":{"rendered":"MariaDB: An Alternate for Mysql"},"content":{"rendered":"<p><strong>MariaDB<\/strong> is a high performance drop-in replacement for MySQL, developed by some of the original authors of the MySQL project. For years, MySQL has been the dominant open-source database management system (DBMS). Recently, MariaDB, the MySQL fork created by MySQL&#8217;s founder, has been making in-roads and websites like Wikipedia the world&#8217;s sixth most popular Web site, is shifting over from MySQL to MariaDB.<\/p>\n<p><strong><span style=\"text-decoration: underline;\">Lets check how to replace MYSQL with MARIADB in a cpanel server<\/span><\/strong><\/p>\n<p><strong>Step 1<\/strong>: Backup existing MySQL data<\/p>\n<p>Before installing mariadb make sure to take backup of current mysql data<!--more--><\/p>\n<p><em># service mysql stop<\/em><br \/>\n<em># cp -r \/var\/lib\/mysql \/var\/lib\/mysql-back<\/em><br \/>\n<em># service mysql start<\/em><\/p>\n<p><strong>Step 2<\/strong>: Disable the targets so cPanel no longer handles MySQL updates<\/p>\n<p><em>#\/scripts\/update_local_rpm_versions &#8211;edit target_settings.MySQL50 uninstalled<\/em><br \/>\n<em>#\/scripts\/update_local_rpm_versions &#8211;edit target_settings.MySQL51 uninstalled<\/em><br \/>\n<em>#\/scripts\/update_local_rpm_versions &#8211;edit target_settings.MySQL55 uninstalled<\/em><\/p>\n<p><strong>Step 3<\/strong>: Remove existing MySQL RPM\u2019s so theres a clean slate for MariaDB<\/p>\n<p><em>#\/scripts\/check_cpanel_rpms &#8211;fix &#8211;targets=MySQL50,MySQL51,MySQL55<\/em><\/p>\n<p><strong>Step 4<\/strong>: Create a yum repository for MariaDB<\/p>\n<p>Access https:\/\/downloads.mariadb.org\/mariadb\/repositories and select the DISTRO and place the repo content to \/etc\/yum.repos.d\/MariaDB.repo.<br \/>\n<em>#nano \/etc\/yum.repos.d\/MariaDB.repo<\/em><\/p>\n<p>====================================================<br \/>\n# MariaDB 5.5 CentOS repository list &#8211; created 2014-09-16 13:35 UTC<br \/>\n# http:\/\/mariadb.org\/mariadb\/repositories\/<br \/>\n[mariadb]<br \/>\nname = MariaDB<br \/>\nbaseurl = http:\/\/yum.mariadb.org\/5.5\/centos6-amd64<br \/>\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB<br \/>\ngpgcheck=1<br \/>\n===================================================<\/p>\n<p><strong>Step 5<\/strong>: Install MariaDB using the following command<\/p>\n<p><em># yum install MariaDB-server MariaDB-client MariaDB-devel<\/em><\/p>\n<p>note: If you are encountering in any dependency problem, please remove PHP from the \/etc\/yum.conf file and then run above yum command again<\/p>\n<p><em># \/etc\/init.d\/mysql start<\/em><br \/>\n<em># mysql_upgrade<\/em><br \/>\n<em># \/etc\/init.d\/mysql restart<\/em><\/p>\n<p>ADD the php back to the yum conf file.<\/p>\n<p><strong>Step 6<\/strong>: Rebuild easyapache\/php to ensure modules are working.<\/p>\n<p>#\/scripts\/easyapache &#8211;build<\/p>\n<p><strong>Need expert assistance?<\/strong><\/p>\n<p><a href=\"https:\/\/www.supportpro.com\/\"><strong>SupportPRO<\/strong><\/a> has a team of well experienced professionals. We can assist you in shifting over from MySQL to MariaDB in your server. Feel free to contact us if you need assistance.<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/www.supportpro.com\/freecheckup.php\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MariaDB is a high performance drop-in replacement for MySQL, developed by some of the original authors of the MySQL project. For years, MySQL has been the dominant open-source database management&hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5,7,3],"tags":[],"class_list":["post-1345","post","type-post","status-publish","format-standard","hentry","category-general-topics","category-server-tweaking","category-technical-articles"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1345"}],"version-history":[{"count":8,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1345\/revisions"}],"predecessor-version":[{"id":4424,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1345\/revisions\/4424"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}