Home  >  Article  >  Database  >  在MAC里启动和停止的MySQL和PostgreSQL的的指令

在MAC里启动和停止的MySQL和PostgreSQL的的指令

WBOY
WBOYOriginal
2016-06-07 15:52:371071browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn