Created
November 5, 2016 22:08
-
-
Save wamith/5835927eef9ad307a691ff6eeb6c97b3 to your computer and use it in GitHub Desktop.
Installing mysql 5.7 on centos 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing mysql 5.7 on centos 6 | |
1. download yum repo | |
wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm | |
2. install yum repo | |
yum -y localinstall mysql57-community-release-el6-7.noarch.rpm | |
3. verify yum repo | |
yum repolist enabled | grep "mysql.*-community.*" | |
3a. to enable/disable a particular release | |
# yum-config-manager --disable mysql57-community | |
# yum-config-manager --enable mysql56-community | |
4. install | |
yum -y install mysql-community-server | |
service mysqld start | |
service mysqld status | |
mysql --version | |
5. securing the installation | |
grep 'temporary password' /var/log/mysqld.log | |
mysql_secure_installation --> follow the prompts | |
remove anonymouse users | |
disallow root remote login | |
6. Enjoy | |
mysql -u root -p 12345 | |
Useful links: | |
http://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html | |
http://www.tecmint.com/install-latest-mysql-on-rhel-centos-and-fedora/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
58
From: https://dev.mysql.com/doc/refman/8.0/en/checking-rpm-signature.html
There is no separate signature. RPM packages have a built-in GPG signature and MD5 checksum.
rpm also supports loading the key directly from a URL:
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
https://stackoverflow.com/a/71265327