Last active
July 13, 2017 11:20
-
-
Save jeffmcneill/3d018f7a536fc73cfa131d6645a85395 to your computer and use it in GitHub Desktop.
July 2017 valid rhel 6.x version for mysql 5.7 community edition - good for Amazon Linux AMI
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
yum -y install libaio | |
yum -y install numactl | |
# Note, may need to change version on next two lines, see https://dev.mysql.com/downloads/repo/yum/ | |
wget http://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm | |
yum -y localinstall mysql57-community-release-el6-11.noarch.rpm | |
yum -y install mysql-community-server | |
service mysqld start | |
grep 'temporary password' /var/log/mysqld.log | |
mysql –uroot –p | |
# Interactively type in the temporary password displayed | |
# Create a new password and put into final '' in ALTER command below | |
ALTER USER 'root'@'localhost' IDENTIFIED BY ''; | |
# Next verify hashed password for root, and also version of mysql now installed | |
select user,host,authentication_string from mysql.user; | |
select @@version,@@basedir,@@datadir; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment