Skip to content

Instantly share code, notes, and snippets.

@mnaser
Created December 16, 2012 20:15
Show Gist options
  • Save mnaser/4312349 to your computer and use it in GitHub Desktop.
Save mnaser/4312349 to your computer and use it in GitHub Desktop.
This will install the Percona server, start it on system boot, start the service and set a root password and display it.
yum -y install Percona-Server-shared-compat Percona-Server-server-55 expect
chkconfig mysql on
service mysql start
SQL_PW=$(mkpasswd -l 32)
mysqladmin password "$SQL_PW"
echo "Root MySQL Password: $SQL_PW"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment