Skip to content

Instantly share code, notes, and snippets.

@nghuuphuoc
Last active December 30, 2015 02:59
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 nghuuphuoc/7766532 to your computer and use it in GitHub Desktop.
Save nghuuphuoc/7766532 to your computer and use it in GitHub Desktop.
Install MySQL 5 on Centos 6
// http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html
$ wget http://dev.mysql.com/get/mysql-community-release-el6-4.noarch.rpm
$ sudo yum localinstall mysql-community-release-el6-4.noarch.rpm
// Check MySQL Yum repos has been added
$ sudo yum repolist enabled | grep "mysql-community"
Failed to set locale, defaulting to C
mysql-community MySQL Community Server 19
$ sudo yum install mysql-server
// Start before changing the root password
$ sudo service mysqld start
// Set root password
$ mysql_secure_installation
// Config file
/etc/my.cnf
// Log file
/var/log/mysqld.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment