USE mysql; ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘831015‘; FLUSH PRIVILEGES; root是用户名 localhost是ip地址127.0.0.1都是特指本机,%表示任何IP都可访问 mysql_native_password是旧的密码验证机制,831015是密码,最后别忘了分号;
原文地址:https://www.cnblogs.com/linjiqin/p/10481663.html
时间: 2024-10-18 15:21:41