在MAC里启动和停止的MySQL和PostgreSQL的的指令
扫描二维码
随时随地手机看文章
alias startmysql='sudo /Library/StartupItems/MySQLCOM/MySQLCOM start'
alias stopmysql='sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop'
sudo -u postgres /Library/PostgreSQL/9.1/bin/pg_ctl -D/Library/PostgreSQL/9.1/data start
sudo -u postgres /Library/PostgreSQL/9.1/bin/pg_ctl -D/Library/PostgreSQL/9.1/data stop