gpt4 book ai didi

mysql - 集成安全 MySQL/VB.NET

转载 作者:行者123 更新时间:2023-11-29 07:19:00 24 4
gpt4 key购买 nike

为什么使用以下代码:

Dim conn As MySqlConnection = 
New MySqlConnection("server=localhost;Integrated Security=True;")

不起作用?当我尝试 conn.open(); 时,出现以下错误:未将对象引用设置为对象的实例。

最佳答案

来自https://www.connectionstrings.com/mysql/

Use Windows authentication Server=myServerAddress;Database=myDataBase;IntegratedSecurity=yes; Uid=auth_windows; This option is available from Connector/NET version 6.4.4The Windows Native Authentication Plugin must be installed for this to work.

关于mysql - 集成安全 MySQL/VB.NET,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36813627/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com