{"id":5523,"date":"2023-11-27T10:13:47","date_gmt":"2023-11-27T10:13:47","guid":{"rendered":"https:\/\/natsav.com\/blog\/?p=5523"},"modified":"2024-02-02T12:07:12","modified_gmt":"2024-02-02T12:07:12","slug":"install-mysql-on-centos-7","status":"publish","type":"post","link":"https:\/\/natsav.com\/blog\/install-mysql-on-centos-7\/","title":{"rendered":"How to Install MySQL or MariaDB on Centos 7."},"content":{"rendered":"<p><span style=\"text-decoration: underline;\"><span style=\"color: #000000;\"><em><strong>Install MySQL on CentOS 7&#8230;<\/strong><\/em><\/span><\/span><\/p>\n<p><strong>Step 1: Update the System.<br \/>\n<\/strong># [ sudo yum update ]<\/p>\n<p><strong>Step 2: Install MySQL.<br \/>\n# <\/strong>[ sudo yum install mysql-server ]<\/p>\n<p><strong>Step 3: Start MySQL Service.<br \/>\n<\/strong># [ sudo systemctl start mysqld ]<\/p>\n<p><strong>Step 4: Enable MySQL to Start on Boot.<br \/>\n#<\/strong> [ sudo systemctl <span class=\"hljs-built_in\">enable<\/span> mysqld ]<\/p>\n<p><strong>Step 5: Secure MySQL Installation.<br \/>\n<\/strong>Run the MySQL security script to improve the default security settings.<strong><br \/>\n#<\/strong> [ sudo mysql_secure_installation ]<br \/>\nFollow the prompts to set a root password and adjust other security options.<\/p>\n<p><span style=\"text-decoration: underline;\"><em><strong><span style=\"color: #000000; text-decoration: underline;\">Install MariaDB on CentOS 7:<\/span><\/strong><\/em><\/span><\/p>\n<p><strong>Step 1: Update the System<\/strong><em>.<\/em><span style=\"text-decoration: underline;\"><em><br \/>\n<\/em><\/span># [ sudo yum update ]<\/p>\n<p><strong>Step 2: Install MariaDB.<\/strong><span style=\"text-decoration: underline;\"><em><br \/>\n<\/em><\/span># [ sudo yum install mariadb-server ]<\/p>\n<p><strong>Step 3: Start MariaDB Service.<br \/>\n# <\/strong>[ sudo systemctl start mariadb ]<\/p>\n<p><strong>Step 4: Enable MariaDB to Start on Boot.<\/strong><span style=\"text-decoration: underline;\"><em><br \/>\n<\/em><\/span># [ sudo systemctl <span class=\"hljs-built_in\">enable<\/span> mariadb ]<\/p>\n<p><strong>Step 5: Secure MariaDB Installation.<br \/>\n<\/strong>Run the MariaDB security script to set a root password and secure the installation.<br \/>\n#\u00a0 [ sudo mysql_secure_installation ]<br \/>\nFollow the prompts to set a root password and adjust other security options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install MySQL on CentOS 7&#8230; Step 1: Update the System. # [ sudo yum update ] Step 2: Install MySQL. # [ sudo yum install mysql-server ] Step 3: Start MySQL Service. # [ sudo systemctl start mysqld ] Step 4: Enable MySQL to Start on Boot. # [ sudo systemctl enable mysqld ] Step [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5524,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[256],"tags":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/natsav.com\/blog\/wp-content\/uploads\/2023\/11\/MariaDB-e1701080022140.jpg?fit=926%2C486&ssl=1","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/posts\/5523"}],"collection":[{"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/comments?post=5523"}],"version-history":[{"count":6,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/posts\/5523\/revisions"}],"predecessor-version":[{"id":5855,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/posts\/5523\/revisions\/5855"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/media\/5524"}],"wp:attachment":[{"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/media?parent=5523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/categories?post=5523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/natsav.com\/blog\/wp-json\/wp\/v2\/tags?post=5523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}