mysql 的密碼如何更改
1、停掉服務(wù)
2幻碱、mysqld_safe --skip-grant-tables? --skip-networking? &? 打入 ? ,出于安全考慮一般打上 --skip-networking 拨扶,是為了并開啟網(wǎng)絡(luò)的連接旧烧,也就是3306的端口,此網(wǎng)路是實(shí)現(xiàn)在本地之上
3季惩、另開終端录粱,mysql -uroot? ,? 可以進(jìn)入數(shù)據(jù)庫
4画拾、update mysql.user set authentication_string=password('你想修改的密碼')? where user='root';
5啥繁、成功更改密碼