Last active
December 26, 2015 09:49
-
-
Save tomoemon/7132797 to your computer and use it in GitHub Desktop.
mysql 5.6 INSTALL-BINARY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
基本的に mysql 公式の手順と同じ | |
# create user | |
shell> sudo groupadd mysql | |
shell> sudo useradd -r -g mysql mysql | |
# download & install mysql | |
shell> wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.14-linux-glibc2.5-x86_64.tar.gz/from/http://cdn.mysql.com/ -O mysql-5.6.bin.tar.gz | |
shell> tar zxvf mysql-5.6.bin.tar.gz | |
shell> sudo mv mysql-5.6.14-linux-glibc2.5-x86_64 /usr/local | |
shell> cd /usr/local | |
shell> sudo ln -s mysql-5.6.14-linux-glibc2.5-x86_64 mysql | |
shell> cd mysql | |
shell> sudo chown -R mysql . | |
shell> sudo chgrp -R mysql . | |
shell> sudo scripts/mysql_install_db --user=mysql | |
shell> sudo chown -R root . | |
shell> sudo chown -R mysql data | |
shell> sudo bin/mysqld_safe --user=mysql & | |
# optional 起動スクリプトを配置(名前を mysql.server から mysqld に変えている) | |
shell> sudo cp support-files/mysql.server /etc/init.d/mysqld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment