{"id":26966,"date":"2018-05-31T02:19:38","date_gmt":"2018-05-31T07:19:38","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=26966"},"modified":"2022-12-09T06:43:19","modified_gmt":"2022-12-09T12:43:19","slug":"how-to-install-mysql-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/","title":{"rendered":"How to Install MySQL on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-27001\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7.png\" alt=\"How to Install MySQL on CentOS 7\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7.png 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7-150x75.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7-300x150.png 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Let us show you how to install MySQL on your CentOS 7 server. MySQL is a relational database management system that functions through the use of a query system. Created in 1995, it\u2019s an open-source project that is currently developed by Oracle, and has existed since 1995. It\u2019s fast, written in C and C++, and is available on almost any system platform. Its features include cross-platform support, replication support, Unicode support, triggers, cursors, and much more. Since this is such a highly versatile and desirable database-management tool, most people want to install it on their Linux machines, but find that the built-in software repositories install MariaDB, which is a community-developed version of MySQL.<!--more--><\/p>\n<p>In this tutorial, we will go through the process of installing MySQL 8.0 on CentOS 7, and not MariaDB. It\u2019s simple, but does involve adding a custom repository made by MySQL themselves. For this, you will need an active internet connection, and a VPS or server running CentOS 7.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ecc85a2d0ee\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ecc85a2d0ee\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#Step-1-Download-the-Yum-repository\" >Step 1: Download the Yum repository.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#Step-2-Add-the-MySQL-Yum-repository\" >Step 2: Add the MySQL Yum repository.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#Step-3-Install-MySQL\" >Step 3: Install MySQL.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#Step-4-Set-up-MySQL\" >Step 4: Set up MySQL.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#Additional-Tips\" >Additional Tips<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Download-the-Yum-repository\"><\/span><b>Step 1: Download the Yum repository.<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In order to add the <strong><a href=\"https:\/\/dev.mysql.com\/downloads\/repo\/yum\/\">new repository<\/a><\/strong>, we need to download it first. You then need to click on the \u201cDownload\u201d button next to the download for Red Hat Enterprise Linux 7. Once the page loads, right-click \u201cNo thanks, just start my download\u201d found at the bottom half of the page, and click on \u201cCopy Link\u201d or \u201cCopy Linked Address\u201d.<\/p>\n<p>Now, SSH or log into your CentOS 7 machine, and make sure that you have the \u201cwget\u201d tool installed by just typing \u201cwget\u201d into the bash shell. If you don\u2019t have wget installed, simply install it by entering the following command:<\/p>\n<pre>yum install -y wget<\/pre>\n<p>Within the next minute, wget will be downloaded and installed onto your system. Once you have wget, you can now download the repository file. Navigate to a folder where you want the download to be saved, and enter the following command:<\/p>\n<pre>wget &lt;paste the download link here&gt;<\/pre>\n<p>Give it a moment to download and save the file to your machine. When done, proceed to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Add-the-MySQL-Yum-repository\"><\/span><b>Step 2: Add the MySQL Yum repository.<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Adding this new repository to your Yum program is very easy. Just enter the following command:<\/p>\n<pre>sudo rpm -Uvh &lt;enter the package name here&gt;<\/pre>\n<p>Replace &lt;enter the package name here&gt; with the name of your package. You can use the Tab key to autocomplete the entry if you have partially typed it already. Enter your user account\u2019s password when prompted to. Once you have successfully added the Yum repository, proceed to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-MySQL\"><\/span><b>Step 3: Install MySQL.<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that we have the repository added, we can now install the official MySQL software package. Just enter the following command to install:<\/p>\n<pre>sudo yum install mysql-community-server<\/pre>\n<p>Press the \u2018y\u2019 key if prompted to. Within a couple of minutes, the MySQL server will be downloaded and installed onto your CentOS 7 system.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Set-up-MySQL\"><\/span><b>Step 4: Set up MySQL.<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You now <b>HAVE<\/b> to start the server and set the root password. First, start your MySQL server by executing the following command:<\/p>\n<pre>sudo systemctl start mysqld.service<\/pre>\n<p>When this is done for the first time, the root user is created with a random password, and the password can be found in the error log file. Use this next command to reveal the password:<\/p>\n<pre>sudo grep \u2018temporary password\u2019 \/var\/log\/mysqld.log<\/pre>\n<p>the output should contain the password itself. Now you need to log in as the root user using this password. Enter this next command to enter the MySQL query shell:<\/p>\n<pre>mysql -uroot -p<\/pre>\n<p>Enter the password you just read from the output. Once you have logged in, change the root password by entering the following command (<b>NOTE: <\/b>Don\u2019t forget to change \u2018mypassword\u2019 to the password you wish to use! Your password must be at least 8 characters long, and contain an uppercase letter, a lowercase letter, a special character, and at least one digit. ):<\/p>\n<pre>ALTER USER 'root'@'localhost' IDENTIFIED BY 'mypassword';<\/pre>\n<p>You have now successfully set your new root account password.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Additional-Tips\"><\/span><b>Additional Tips<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you ever need to update your MySQL server, just do it though Yum by simply upgrading the package:<\/p>\n<pre>sudo yum update mysql-server<\/pre>\n<p>This update process also happens when you update the entire system using Yum. Once the server is updated, it automatically restarts, it is important to run \u201cmysql_upgrade\u201d in order to have MySQL perform check with its plugins to make sure that everything will continue to run smoothly.<\/p>\n<p>If you need your MySQL server to run every time you boot the machine up, enter the following command:<\/p>\n<pre>sudo systemctl enable mysqld.service<\/pre>\n<p>Now when you restart your machine, your MySQL server will be automatically started.<\/p>\n<p>If you have followed this tutorial correctly, your CentOS 7 machine should now have a copy of MySQL server running on it. From here, you can work with databases, add plugins and extensions to make working with these databases easier, and so on.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-27002\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-mysql-on-centos-7.png\" alt=\"how to install mysql on centos 7\" width=\"176\" height=\"119\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-mysql-on-centos-7.png 176w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-mysql-on-centos-7-150x101.png 150w\" sizes=\"(max-width: 176px) 100vw, 176px\" \/>Of course, you don\u2019t need to install MySQL on your CentOS 7 server yourself if you have a <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS VPS<\/a> hosted with us &#8211; in which case, our technical support team will install MySQL and set it up for you. They are available 24\/7, and can cater to any questions or requests.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS.<\/span><\/strong> If you liked this post, feel free to share it with your friends by using the social media share shortcuts below, or simply leave a comment. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let us show you how to install MySQL on your CentOS 7 server. MySQL is a relational database management system &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install MySQL on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#more-26966\" aria-label=\"Read more about How to Install MySQL on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27001,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1702,13],"tags":[541,39],"class_list":["post-26966","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-databases","category-tutorials","tag-centos-7","tag-mysql","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install MySQL on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install MySQL on CentOS 7 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install MySQL on CentOS 7\" \/>\n<meta property=\"og:description\" content=\"How to Install MySQL on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-31T07:19:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-09T12:43:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7.png\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install MySQL on CentOS 7\",\"datePublished\":\"2018-05-31T07:19:38+00:00\",\"dateModified\":\"2022-12-09T12:43:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/\"},\"wordCount\":841,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Install-MySQL-on-CentOS-7.png\",\"keywords\":[\"centos 7\",\"mysql\"],\"articleSection\":[\"CentOS\",\"Databases\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/\",\"name\":\"How to Install MySQL on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Install-MySQL-on-CentOS-7.png\",\"datePublished\":\"2018-05-31T07:19:38+00:00\",\"dateModified\":\"2022-12-09T12:43:19+00:00\",\"description\":\"How to Install MySQL on CentOS 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Install-MySQL-on-CentOS-7.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Install-MySQL-on-CentOS-7.png\",\"width\":742,\"height\":371,\"caption\":\"How to Install MySQL on CentOS 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install MySQL on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install MySQL on CentOS 7 | RoseHosting","description":"How to Install MySQL on CentOS 7 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install MySQL on CentOS 7","og_description":"How to Install MySQL on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-05-31T07:19:38+00:00","article_modified_time":"2022-12-09T12:43:19+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install MySQL on CentOS 7","datePublished":"2018-05-31T07:19:38+00:00","dateModified":"2022-12-09T12:43:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/"},"wordCount":841,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7.png","keywords":["centos 7","mysql"],"articleSection":["CentOS","Databases","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/","name":"How to Install MySQL on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7.png","datePublished":"2018-05-31T07:19:38+00:00","dateModified":"2022-12-09T12:43:19+00:00","description":"How to Install MySQL on CentOS 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Install-MySQL-on-CentOS-7.png","width":742,"height":371,"caption":"How to Install MySQL on CentOS 7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install MySQL on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=26966"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26966\/revisions"}],"predecessor-version":[{"id":43967,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26966\/revisions\/43967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27001"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=26966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=26966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=26966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}