使用Windows身份验证连接到MySQL 时间:2015-04-08 作者:DigitalD 是否可以使用Wordpress/PHP连接到我的MySQL数据库Windows Authentication 在IIS上?我可以使用普通的MySQL命令行实用程序很好地连接。我得到了以下错误:Warning: mysqli_real_connect(): The server requested authentication method unknown to the client [authentication_windows_client] in c:\\wordpress\\wp-includes\\wp-db.php on line 1386 Warning: mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client in c:\\wordpress\\wp-includes\\wp-db.php on line 1386 Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in c:\\wordpress\\wp-includes\\wp-db.php on line 1416 Warning: mysql_connect(): The server requested authentication method unknown to the client [authentication_windows_client] in c:\\wordpress\\wp-includes\\wp-db.php on line 1416 Warning: mysql_connect(): The server requested authentication method unknown to the client in c:\\wordpress\\wp-includes\\wp-db.php on line 1416 1 个回复 SO网友:crosenblum 这只是一种糟糕的安全方法。因为连接mysql数据库的唯一方法是通过您使用的pc。如果您使用用户名/密码,则可以将站点移动到其他服务器等。因此,Windows身份验证是个坏主意,太容易克服,老实说,也不太安全。作为一个用户名和强密码,它会经常更改,这会提高安全性。但情况是这样的,如果你坚持要把车开过悬崖,我们不会妨碍你,但你不会喜欢你选择的结果。 结束 文章导航