Skip to content

Instantly share code, notes, and snippets.

@tomoemon
Last active October 8, 2015 12:27
Show Gist options
  • Save tomoemon/3331747 to your computer and use it in GitHub Desktop.
Save tomoemon/3331747 to your computer and use it in GitHub Desktop.
MySQL5.5.27のコンパイルオプション
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