1. 程式人生 > >修改mysql數據庫 密碼

修改mysql數據庫 密碼

then pass nbsp set pda 數據庫 user authent local

 將密碼改成123456 update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘ and Host = ‘localhost‘;

將密碼改成空 update mysql.user set authentication_string=password(‘‘) where user=‘root‘ and Host = ‘localhost‘;

這個修改的就是剛進mysql console 需要輸入的密碼, 也是navcat裏創建連接所要用到的密碼

記得重啟服務器

修改mysql數據庫 密碼