{"id":7597,"date":"2024-01-02T18:37:47","date_gmt":"2024-01-02T13:07:47","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7597"},"modified":"2024-01-02T18:37:52","modified_gmt":"2024-01-02T13:07:52","slug":"how-to-install-mysql-8-0-on-centos-7","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-mysql-8-0-on-centos-7\/","title":{"rendered":"How to install MySQL 8.0 on CentOS 7"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mysql is the latest release of the powerful MySQL database management system. To start installing the MySQL 8.0 server on CentOS 7, you must add the official MySQL community repository to your system. Run the following command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisite<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Server root login credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Adding the MySQL Yum Repository<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ wget https:\/\/repo.mysql.com\/mysql80-community-release-el7-1.noarch.rpm<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><br><strong>Step 2:<\/strong><br>After downloading the package for your Linux platform, install the downloaded package with the following command:<br><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-12-193547.png\"><\/a><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ yum localinstall mysql80-community-release-el7-1.noarch.rpm<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong>Step 3:<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can verify that the MySQL Yum repository has been added successfully or not by using the following command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ yum repolist enabled | grep &#8220;mysql.<em>-community.<\/em>&#8220;<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong>Step 4:<\/strong><br>Install the latest version of MySQL (currently 8.0) using the following command:<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ yum install mysql-community-server<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong>Step 5:<\/strong><br>Start MySQL using the following command:<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ service mysqld start<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong>Step 6:<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Check the MySQL status.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ systemctl status mysqld.service<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong>Step 6:<\/strong><br>And check the MySQL version.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ mysql &#8211;version<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong>Conclusion<\/strong><br>Following the steps mentioned above, we can install MySQL 8.0 on CentOS 7.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-12-192437.png\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Mysql is the latest release of the powerful MySQL database management system. To start installing the MySQL 8.0 server [&hellip;]<\/p>\n","protected":false},"author":499,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-7597","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1Yx","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/499"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7597"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7597\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}