跳至主要內容

brew操作mysql

xkrivzoohpost杂记小于 1 分钟

brew操作mysql

  • 安装mysql brew install mysql
  • 启动mysql brew services start mysql
  • 停止mysql brew services stop mysql
  • 重启mysql brew services restart mysql

在我的机器上,my.cnf文件的位置在:/usr/local/etc/my.cnf,默认情况下里面的内容为:

# Default Homebrew MySQL server config
[mysqld]
# Only allow connections from localhost
bind-address = 127.0.0.1
上次编辑于: