wodebudong

1.登录mysql,执行如下的语句,表示允许任何ip使用root用户,通过123这个密码访问

grant all on *.* to \'root\'@\'%\' IDENTIFIED BY \'123\'with grant option;

 

2.自己的mysql安装路径下,有一个my.cnf文件

找不到可以使用find / -name my.cnf

# Default Homebrew MySQL server config
[mysqld]
# Only allow connections from localhost
#bind-address = 127.0.0.1   --->将这行注释掉,否则就会一直被限制智能用本地访问

 

分类:

技术点:

相关文章:

  • 2021-10-22
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-09-25
猜你喜欢
  • 2022-01-02
  • 2022-02-07
  • 2021-06-13
  • 2021-04-05
  • 2021-07-26
  • 2021-12-28
  • 2022-12-23
相关资源
相似解决方案