mysql常用的小技巧
1.輸入原密碼。接著設置新密碼
代碼:mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
www.2cto.com
2.若你想新建一個具有所有權限的新用戶
代碼:GRANT ALL PRIVILEGES ON *.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;