Skip to content

Instantly share code, notes, and snippets.

@haio
Created April 14, 2013 10:31
Show Gist options
  • Save haio/5382242 to your computer and use it in GitHub Desktop.
Save haio/5382242 to your computer and use it in GitHub Desktop.
Add REMI repository:
## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
## check available mysql version ##
yum --enablerepo=remi,remi-test list mysql mysql-server
Install MySQL:
# yum --enablerepo=remi,remi-test install mysql mysql-server
## Add to /etc/sysconfig/iptables ##
Iptables:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
## Restart iptables ##
service iptables restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment