Skip to content

Instantly share code, notes, and snippets.

@thangnc
Forked from jhjguxin/install_mysql_5_5_centos.md
Last active January 7, 2016 16:09
Show Gist options
  • Save thangnc/8e0391f74d030980529e to your computer and use it in GitHub Desktop.
Save thangnc/8e0391f74d030980529e 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

Install Remi repository

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

Check Available MySQL versions

yum --enablerepo=remi,remi-test list mysql mysql-devel mysql-server

Update or Install MySQL 5.5.37

yum --enablerepo=remi,remi-test install mysql mysql-server

Start MySQL server and autostart MySQL on boot

/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