.net連接數據時,字符串的密碼不翼而飛了
Authentication to host '*****' for user 'root'
using method 'mysql_native_password' failed with message:
Access denied for user 'root'@'****' (using password: NO)
解決方法在連接字符串新加一個參數: Persist Security Info=True
Persist Security Info=True`参数告诉连接字符串是否应该保存到连接字符串中的敏感信息
默認為False
Data Source=.ip;Initial Catalog=database;User ID=**;Password=**;Persist Security Info=True