第六步:執(zhí)行命令:update user set authentication_string ='' where user = 'root'; 清空密碼。因?yàn)?em>MySql8+, 和以前版本有點(diǎn)不同,user表沒有password字段了,而是authentication_string 。 第七步:輸入指令:flush privileges; 使改變生效。 exit 退出mysql。
www.dbjr.com.cn/database/2989873...htm 2025-6-6