Sections below are relevant for both MySQL 8.0 and MySQL 5.7. Install MySQL as any other package using yum: sudo yum install mysql-community-server To install the previous stable release of MySQL, MySQL versionĥ.7 on a CentOS 7 server, follow the steps below:Įnable the MySQL 5.7 repository with the following command: sudo yum localinstall Install MySQL 8.0 package with yum: sudo yum install mysql-community-serverĭuring the installation yum may prompt you to import the MySQL GPG key. To install it on your CentOS 7 server follow the steps below:Įnable the MySQL 8.0 repository with the following command: sudo yum localinstall Install MySQL 8.0 on CentOS 7 #Īt the time of writing this article, the latest version of MySQL is version 8.0. If you are not sure which version to install consult the documentation of the applications you’re going to deploy on your server. You should install only one MySQL version on your CentOS 7 server. Install centos 7 via serial console connection how to#In the following sections, we will show you how to install MySQL 8.0 and MySQL 5.7. It is best practice to run administrative commands as sudo user instead of root, if you don’t have a sudo user on your system you can create one by following these instructionsĪs we mentioned in the introduction MySQL is not available in the default CentOS 7 repositories so we will be installing the packages from the MySQL Yum Repository Prerequisites #īefore starting with this tutorial, make sure you are logged into your server with a user account with sudo privileges or with the root user. If you want to install MariaDB instead of MySQL check our tutorialįor installation instructions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |