public class CertificateTrust { public static void SetCertificatePolicy() { //当在浏览器中可以正常访问,而code中出现错误时,可以用fiddle看下正常访问的SSl加密认证的版本号 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; ServicePointManager.ServerCertificateValidationCallb…
由于查阅了很多百度文档发现很多方法比较复杂,所以写个备忘: 首先,进入MySQL 8.0Command Line Client -Unicode,输入密码,登录进去. 然后,在命令行输入:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; 即更新user为root,host为localhost 的密码为123456.密码自己可以根据个人情况随意设置. 当显示Query OK, 0 row…