Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jeffmcneill
Last active July 13, 2017 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffmcneill/3d018f7a536fc73cfa131d6645a85395 to your computer and use it in GitHub Desktop.
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
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