因调试需要,在mac上安装了mysql,安装方法网上大把,此处不赘述。启动和停止命令每次要手工敲,因此写个小脚本方便自己:

startmysql.sh(/Applications/Develop/mysql-5.6.24为mysql的安装目录):

cd /Applications/Develop/mysql-5.6.24
./bin/mysqld_safe&

stopmysql.sh

kill -9 `ps -ef | grep mysqld_safe| grep -v grep| awk '{print $2}'`
kill -9 `ps -ef | grep 'mysqld' | grep -v grep| awk '{print $2}'`

相关文章:

  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2021-08-21
  • 2021-05-28
猜你喜欢
  • 2022-01-10
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案