Helpful Command

1. ์›๊ฒฉ ํŒŒ์ผ ์ „์†ก

# local ์—์„œ pem key ๋กœ file.txt ๋ฅผ ์›๊ฒฉ ์„œ๋ฒ„๋กœ ์ „์†กํ•˜๋Š” ๋ช…๋ น์–ด  
scp -i /path/to/pem_key file.txt user@remote_server_ip:~/remote_folder/

2. brew

# install 
brew install mysql

# MySQL ์„œ๋ฒ„ ์‹คํ–‰ํ•˜๊ธฐ
mysql.server start

# MySQL ์„œ๋ฒ„ ์ข…๋ฃŒํ•˜๊ธฐ
mysql.server stop 

# MySQL์„ ๋ฐ๋ชฌ์œผ๋กœ ์‹คํ–‰ํ•˜๊ธฐ (background)
brew services start mysql

# ์„œ๋น„์Šค ์žฌ์‹œ์ž‘ํ•˜๊ธฐ
brew services restart mysql 

# demon ์œผ๋กœ ์‹คํ–‰๋˜๊ณ  ์žˆ๋Š” ํ”„๋กœ๊ทธ๋žจ ๋ชฉ๋ก ํ™•์ธํ•˜๊ธฐ 
brew services list 

# ๋ฐ๋ชฌ ํ˜•ํƒœ๋กœ ์‹คํ–‰๋˜๊ณ  ์žˆ๋Š” MySQL ์ข…๋ฃŒํ•˜๊ธฐ
brew services stop mysql

Last updated