Created
September 12, 2014 08:05
-
-
Save kikegarcia/8b0dc8f0451b2b5fba7e to your computer and use it in GitHub Desktop.
Mysql on Red Hat 6.* / CentOS 6.*
This file contains 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 localinstall /tmp/mysql-community-release-el6-5.noarch.rpm | |
yum update | |
yum install mysql-server | |
chkconfig mysqld on | |
/etc/init.d/mysqld start | |
/usr/bin/mysqladmin -u root password 'root123' | |
nano /etc/my.cnf | |
/etc/init.d/mysqld stop | |
mkdir /mysql/data | |
yes | cp -rf /var/lib/mysql/* /mysql/data/ | |
chown -R mysql:mysql /mysql/data/ | |
/etc/init.d/mysqld start | |
mysql -p root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment