{"id":673,"date":"2015-04-13T16:23:36","date_gmt":"2015-04-14T01:23:36","guid":{"rendered":"http:\/\/blog.box.kr\/?p=673"},"modified":"2015-04-13T16:23:36","modified_gmt":"2015-04-14T01:23:36","slug":"linuxinstall-mariadb-10-0-on-centos-linux-using-yum-command","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=673","title":{"rendered":"[Linux]Install MariaDB 10.0 on CentOS linux using YUM command"},"content":{"rendered":"<h2>Adding the MariaDB YUM Repository<\/h2>\n<p>We highly recommended to use custom\u00a0<strong>MariaDB YUM<\/strong>\u00a0<strong>repository to instal<\/strong>l. Create a repo file under<em><strong>\/etc\/yum.repos.d\/MariaDB.repo<\/strong><\/em>, Copy and paste following line under <strong>MariaDB repository<\/strong>:<\/p>\n<h3>Add repository on Centos 6.5 32-bit<\/h3>\n<pre># vi \/etc\/yum.repos.d\/MariaDB.repo<\/pre>\n<p>and paste following line:<\/p>\n<blockquote>\n<pre># MariaDB 10.0 CentOS repository list - created 2014-03-12 12:46 UTC\n# http:\/\/mariadb.org\/mariadb\/repositories\/\n[mariadb]\nname = MariaDB\nbaseurl = http:\/\/yum.mariadb.org\/10.0\/centos6-x86\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\ngpgcheck=1<\/pre>\n<\/blockquote>\n<h3>Add repository on Centos 6.5 64-bit<\/h3>\n<pre># vi \/etc\/yum.repos.d\/MariaDB.repo<\/pre>\n<p>and paste following line:<\/p>\n<blockquote>\n<pre># MariaDB 10.0 CentOS repository list - created 2014-03-12 12:47 UTC\n# http:\/\/mariadb.org\/mariadb\/repositories\/\n[mariadb]\nname = MariaDB\nbaseurl = http:\/\/yum.mariadb.org\/10.0\/centos6-amd64\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\ngpgcheck=1<\/pre>\n<\/blockquote>\n<h2 id=\"installing-mariadb-with-yum\">Installing MariaDB 10.0 with YUM<\/h2>\n<p>With the repo file in place you can now install <strong>MariaDB<\/strong> like so:<\/p>\n<pre># yum install MariaDB-server MariaDB-client -y<\/pre>\n<h2>Starting MariaDB<\/h2>\n<p>After complite installation process, <strong>start<\/strong> <strong>MariaDB<\/strong> width following command:<\/p>\n<pre># service mysql start<\/pre>\n<p>or<\/p>\n<pre># \/etc\/init.d\/mysql start<\/pre>\n<p>Set <strong>MariaDB<\/strong> to start on boot:<\/p>\n<pre># chkconfig mysql on<\/pre>\n<h2>Secure MariaDB after installation<\/h2>\n<ul>\n<li>Set (Change) root password<\/li>\n<li>Remove anonymous users<\/li>\n<li>Disallow root login remotely<\/li>\n<li>Remove test database and access to it<\/li>\n<li>Reload privilege tables<\/li>\n<\/ul>\n<p>To secure MariaDB installation enter following command:<\/p>\n<pre>#  mysql_secure_installation<\/pre>\n<p>Example output:<\/p>\n<pre>NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB\nSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!\n\nIn order to log into MariaDB to secure it, we'll need the current\npassword for the root user. If you've just installed MariaDB, and\nyou haven't set the root password yet, the password will be blank,\nso you should just press enter here.\n\nEnter current password for root (enter for none):\nOK, successfully used password, moving on...\n\nSetting the root password ensures that nobody can log into the MariaDB\nroot user without the proper authorisation.\n\nSet root password? [Y\/n] y\nNew password: ENTER YOUR PASSWORD\nRe-enter new password: REPEAT YOUR PASSWORD\nPassword updated successfully!\nReloading privilege tables..\n... Success!\n\nBy default, a MariaDB installation has an anonymous user, allowing anyone\nto log into MariaDB without having to have a user account created for\nthem. This is intended only for testing, and to make the installation\ngo a bit smoother. You should remove them before moving into a\nproduction environment.\n\nRemove anonymous users? [Y\/n] y\n... Success!\n\nNormally, root should only be allowed to connect from 'localhost'. This\nensures that someone cannot guess at the root password from the network.\n\nDisallow root login remotely? [Y\/n] y\n... Success!\n\nBy default, MariaDB comes with a database named 'test' that anyone can\naccess. This is also intended only for testing, and should be removed\nbefore moving into a production environment.\n\nRemove test database and access to it? [Y\/n] y\n- Dropping test database...\n... Success!\n- Removing privileges on test database...\n... Success!\n\nReloading the privilege tables will ensure that all changes made so far\nwill take effect immediately.\n\nReload privilege tables now? [Y\/n] y\n... Success!\n\nCleaning up...\n\nAll done! If you've completed all of the above steps, your MariaDB\ninstallation should now be secure.\n\nThanks for using MariaDB!<\/pre>\n<p><strong>Restart MariaDB:<\/strong><\/p>\n<pre># service mysql restart<\/pre>\n<p>Try to connect to MariaDB:<\/p>\n<pre># mysql -u root -p<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2629\" src=\"https:\/\/i0.wp.com\/lintut.com\/wp-content\/uploads\/2014\/03\/639x352xScreenshot-from-2014-03-12-141810.png.pagespeed.ic.DHQ-h4Kmpx.png?resize=623%2C343\" alt=\"Connect to MariaDB 10.0\" width=\"623\" height=\"343\" data-recalc-dims=\"1\" \/> That\u2019s it. For questions please use comments. Reference:<a title=\"Mariad db offical site\" href=\"https:\/\/mariadb.com\/kb\/en\/installing-mariadb-with-yum\/\"> https:\/\/mariadb.com\/kb\/en\/installing-mariadb-with-yum\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding the MariaDB YUM Repository We highly recommended to use custom\u00a0MariaDB YUM\u00a0repository to install. Create a repo file under\/etc\/yum.repos.d\/MariaDB.repo, Copy and paste following line under MariaDB repository: Add repository on Centos 6.5 32-bit # vi \/etc\/yum.repos.d\/MariaDB.repo and paste following line: # MariaDB 10.0 CentOS repository list &#8211; created 2014-03-12 12:46 UTC # http:\/\/mariadb.org\/mariadb\/repositories\/ [mariadb] name = MariaDB baseurl = http:\/\/yum.mariadb.org\/10.0\/centos6-x86 gpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB gpgcheck=1 Add repository on Centos 6.5 64-bit # vi \/etc\/yum.repos.d\/MariaDB.repo and paste following line: # MariaDB 10.0 CentOS repository list &#8211; created 2014-03-12 12:47 UTC # http:\/\/mariadb.org\/mariadb\/repositories\/ [mariadb] name = MariaDB baseurl = http:\/\/yum.mariadb.org\/10.0\/centos6-amd64 gpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB gpgcheck=1 Installing MariaDB 10.0 with YUM With the repo file in place you can now install MariaDB like so: # yum install MariaDB-server MariaDB-client -y Starting MariaDB After complite installation process, start MariaDB width following command: # service mysql start or # \/etc\/init.d\/mysql start Set MariaDB to start on boot: # chkconfig mysql on Secure MariaDB after installation Set (Change) root password Remove anonymous users Disallow root login remotely Remove test database and access to it Reload privilege tables To secure MariaDB installation enter following command: # mysql_secure_installation Example output: NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-aR","jetpack-related-posts":[{"id":762,"url":"https:\/\/blog.box.kr\/?p=762","url_meta":{"origin":673,"position":0},"title":"Install and configure Nginx, MariaDB &amp; PHP-FPM in CentOS 7 (RHEL7)","date":"2015-05-08","format":false,"excerpt":"https:\/\/stavrovski.net\/blog\/install-and-configure-nginx-mariadb-php-fpm-in-centos-7-rhel7 \u00a0 The following is a quick-N-dirty write-up on\u00a0how to install and configure the LEMP stack (Nginx, MariaDB and PHP-FPM) in\u00a0CentOS 7. I use this as a reference\/guide whenever I need to deploy the\u00a0LEMP stack\u00a0on RHEL based machines. TABLE OF CONTENTS Enable EPEL Repository Update CentOS 7 Install and configure\u2026","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":718,"url":"https:\/\/blog.box.kr\/?p=718","url_meta":{"origin":673,"position":1},"title":"How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7","date":"2015-04-15","format":false,"excerpt":"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7 \u00a0 How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7 Introduction A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":894,"url":"https:\/\/blog.box.kr\/?p=894","url_meta":{"origin":673,"position":2},"title":"How To Install Cassandra on CentOS 7","date":"2015-06-16","format":false,"excerpt":"Apache Cassandra is a NoSQL database intended for storing large amounts of data in a decentralized, highly available cluster. NoSQL refers to a database with a data model other than the tabular relations used in relational databases such as MySQL, PostgreSQL, and Microsoft SQL. Pre-Flight Check These instructions are intended\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":711,"url":"https:\/\/blog.box.kr\/?p=711","url_meta":{"origin":673,"position":3},"title":"HOW TO INSTALL SENSU ON CENTOS7","date":"2015-04-15","format":false,"excerpt":"https:\/\/garage.godaddy.com\/tech\/config\/install-sensu-centos7\/ Sensu is a monitoring router for Linux operating systems such as CentOS 7. It monitors \u201ccheck\u201d scripts and passes their results to the corresponding handler scripts when the specified conditions are met. Checking the status of a service such as Apache is one of the most common uses of\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"Uchiwa","src":"https:\/\/i0.wp.com\/garage.godaddy.com\/wp-content\/uploads\/2015\/01\/Uchiwa.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":687,"url":"https:\/\/blog.box.kr\/?p=687","url_meta":{"origin":673,"position":4},"title":"[\ud38c]MariaDB \uc124\uc815 \ud30c\uc77c my.cnf","date":"2015-04-13","format":false,"excerpt":"http:\/\/www.programkr.com\/blog\/MUDM5ADMwYT2.html \u00a0 \u00a0 # MariaDB database server configuration file. # # You can copy this file to one of: # - \"\/etc\/mysql\/my.cnf\" to set global options, # - \"~\/.my.cnf\" to set user-specific options. # # One can use all long options that the program supports. # Run program with --help\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":714,"url":"https:\/\/blog.box.kr\/?p=714","url_meta":{"origin":673,"position":5},"title":"HOW TO INSTALL PUPPET ON CENTOS7","date":"2015-04-15","format":false,"excerpt":"https:\/\/garage.godaddy.com\/tech\/config\/install-puppet-centos7\/ Puppet is a configuration management tool designed to allow users to define the state of complex IT infrastructures in the easiest way possible. Once those definitions are created, Puppet will automatically enforce those rules across each node. After installation, a Puppet agent is placed on every server, device and\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/673"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=673"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/673\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}