Skip to content

Instantly share code, notes, and snippets.

@peanutsando
Last active December 6, 2018 18:04
Show Gist options
  • Save peanutsando/82456e5302fc8d64cb6890c7ec9950a0 to your computer and use it in GitHub Desktop.
Save peanutsando/82456e5302fc8d64cb6890c7ec9950a0 to your computer and use it in GitHub Desktop.
ubuntu default setup
# 1. nvm
apt-get install build-essential libssl-dev
# use curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# or Wget
# wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source ~/.bashrc
# 2. mysql
apt-get update
apt-get install mysql-server
# input root password
# finish then
service mysql start
# setting korean
vi ~/etc/mysql/my.cnf
[client]
default-character-set = utf8
[mysqld]
init_connect = SET collation_connection = utf8_general_ci
init_connect = SET NAMES utf8
character-set-server = utf8
collation-server = utf8_general_ci
[mysqldump]
default-character-set = utf8
[mysql]
default-character-set = utf8
service mysql restart
@peanutsando
Copy link
Author

mysql --help | grep "Default options" -A 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment