Skip to content

Instantly share code, notes, and snippets.

@ionixjunior
Forked from jhjguxin/install_mysql_5_5_centos.md
Last active September 3, 2015 03:48
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 ionixjunior/9ec87ad8342cfc449ca2 to your computer and use it in GitHub Desktop.
Save ionixjunior/9ec87ad8342cfc449ca2 to your computer and use it in GitHub Desktop.
Install MySQL Database 5.5.37 on CentOS 6.5/5.10, Red Hat (RHEL) 6.5/5.10

Install MySQL Database 5.5.37 on CentOS 6.5/5.10, Red Hat (RHEL) 6.5/5.10

1.change user

su

2.Install Remi repository

## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
 
## CentOS 5 and Red Hat (RHEL) 5 ## 
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

3.Check Available MySQL versions

yum --enablerepo=remi,remi-test list mysql mysql-devel mysql-server
  1. Update or Install MySQL 5.5.37
CentOS 6.5/6.4/6.3/6.2/6.1/6/5.10 and Red Hat (RHEL) 6.5/6.4/6.3/6.2/6.1/6/5.10
yum --enablerepo=remi,remi-test install mysql mysql-server
  1. Start MySQL server and autostart MySQL on boot
Fedora 15/14/13/12/11, CentOS 6.5/6.4/6.3/6.2/6.1/6/5.10 and Red Hat (RHEL) 6.5/6.4/6.3/6.2/6.1/6/5.10

/etc/init.d/mysqld start ## use restart after update## OR ##service mysqld start ## use restart after update chkconfig --levels 235 mysqld on

ldconfig -p | grep mysql

gem install mysql2 -v '0.3.17'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment