# 添加mysql的path
$ sudo mate ~/.bash_profile
export PATH=/usr/local/mysql/bin:$PATH

# 保存配置
:wq
$ source ~/.bash_profile

# 修改mysql密码
$ mysqladmin -u root password

# 登录mysql
$ mysql -u root -p

# 启动/停止开机启动中的mysql服务
$ sudo /Library/StartupItems/MySQL/MySQL start/stop

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-06-19
  • 2021-12-04
  • 2021-08-16
猜你喜欢
  • 2021-12-06
  • 2021-12-06
  • 2021-07-09
  • 2021-09-14
  • 2021-12-16
  • 2022-01-04
相关资源
相似解决方案