连接字符串为:data source=192.168.1.1;Initial Catalog=db;User ID=root;password=123456

明明已经加了密码,但打开数据库连接时总是报错,提示:using password: NO

查了一下资料,其实关键的地方在data source这里,把ip地址改为localhost就可以了。

如果需要用ip地址,则需要把root这个用户加上远程访问权限

相关文章:

  • 2022-02-18
  • 2021-11-27
  • 2021-05-04
  • 2021-08-13
  • 2021-11-06
  • 2021-06-29
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2021-11-10
  • 2022-12-23
  • 2021-08-03
  • 2021-07-17
  • 2022-02-27
相关资源
相似解决方案