debian install mysql 5.6

apt-get install libaio1
groupadd mysql
useradd -r -g mysql mysql
wget -O mysql-5.6.11-debian6.0-x86_64.deb \
http://downloads.mysql.com/archives/mysql-5.6/mysql-5.6.11-debian6.0-x86_64.deb
dpkg -i mysql-5.6.11-debian6.0-x86_64.deb
cd /usr/local
ln -s /opt/mysql/server-5.6 mysql
cd mysql
scripts/mysql_install_db –user=mysql
chown -R root .
chown -R mysql data
cp support-files/mysql.server /etc/init.d/mysql
service mysql start
./bin/mysql_secure_installation

Leave a Reply

Your email address will not be published. Required fields are marked *