Last active
October 8, 2015 12:27
-
-
Save tomoemon/3331747 to your computer and use it in GitHub Desktop.
MySQL5.5.27のコンパイルオプション
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
sudo cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.5 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci | |
# plugin の指定とかないし、バイナリインストールでぶっちゃけ問題ない | |
#バイナリインストールの場合 | |
shell> groupadd mysql | |
shell> useradd -r -g mysql mysql | |
shell> cd /usr/local | |
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz | |
shell> ln -s full-path-to-mysql-VERSION-OS mysql | |
shell> cd mysql | |
shell> chown -R mysql . | |
shell> chgrp -R mysql . | |
shell> scripts/mysql_install_db --user=mysql | |
shell> chown -R root . | |
shell> chown -R mysql data | |
# Next command is optional | |
shell> cp support-files/my-medium.cnf /etc/my.cnf | |
shell> bin/mysqld_safe --user=mysql & | |
# Next command is optional | |
shell> cp support-files/mysql.server /etc/init.d/mysql.server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment