1.修改root密碼(其餘用戶相似)mysql
試過網上看的一些 在mysql數據庫執行 update user set password='新密碼' where user='root' 執行說找不到字段,猜測可能之前老版本跟新版本數據表結構不同了,因此看了下表,應該是authentication_string字段 update user set authentication_string='新密碼' where user='root'。sql
2.局域網或者遠程用戶沒法訪問數據庫
看了下有些描述的比較麻煩,修改ini配置文件什麼的,user表的第一個字段Host,默認是localhost,改爲"%"便可,表明全部均可以訪問。string