Skip to content

Instantly share code, notes, and snippets.

@kingoamino
Last active April 5, 2020 16:49
Show Gist options
  • Save kingoamino/3425e529e40bd9ad7c7e5c3c9b7916ab to your computer and use it in GitHub Desktop.
Save kingoamino/3425e529e40bd9ad7c7e5c3c9b7916ab to your computer and use it in GitHub Desktop.
Install MySQL on CentOS
# Setup Yum repository
rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
# Install MySQL 8 Community Server
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/mysql-community.repo
# Install MySQL
yum --enablerepo=mysql80-community install mysql-community-server -y
# Start MySQL Service
systemctl start mysqld
systemctl enable --now mysqld
systemctl status mysqld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment