본문 바로가기
데이터베이스/MySQL

[MySQL] Mac/Linux Server Start Command

by ordinary_daisy 2024. 10. 8.

Mac Command

server start

mysql.server start
or
brew services start mysql

server restart

mysql.server restart
or
brew services restart mysql

server stop

mysql.server stop
or
brew services stop mysql

mysql login

mysql -u root
-> (password input)

mysql logout

press 'control(^) + z' key

참고) brew 실행 프로그램 리스트

brew services list

Linux Command

server start

service mysql start
or
systemctl start mysql.service

server restart

service mysql restart
or
systemctl restart mysql.service

server stop

service mysql stop
or
systemctl stop mysql.service

mysql login

mysql -uroot -p
-> (password input)

mysql logout

press 'control(^) + z' key