Rumah > Artikel > pangkalan data > 在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 postg
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