Last active
December 6, 2018 18:04
-
-
Save peanutsando/82456e5302fc8d64cb6890c7ec9950a0 to your computer and use it in GitHub Desktop.
ubuntu default setup
This file contains hidden or 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
| # 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mysql --help | grep "Default options" -A 1