方法一:
将本地的mysql数据库设置为允许远程访问

use mysql;

mysql>grant all privileges on . to ‘root’@’%’ with grant option;

mysql>update user set password=password(‘密码’) where user=‘root’;

mysql>flush privileges;

mysql>exit

方法二:
将本地的mysql数据库设置为允许远程访问

记得要flush privileges;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-01-12
  • 2021-12-19
  • 2021-12-19
  • 2021-11-26
  • 2022-01-27
猜你喜欢
  • 2021-12-15
  • 2021-10-25
  • 2022-12-23
  • 2021-07-08
  • 2021-10-13
  • 2021-12-14
相关资源
相似解决方案