2016-01-27 回答
可以修改:
1、用root身份登入 进入mysql库 修改user表即可。
2、操作如下:
g:\phpstudy\mysql\bin>mysql -uroot -proot
welcome to the mysql monitor. commands end with ; or \g.
your mysql connection id is 391
server version: 5.0.51b-community-nt-log mysql community edition (gpl)
type 'help;' or '\h' for help. type '\c' to clear the buffer.
mysql> use mysql;
database changed
mysql> update user set user='xly' where user='root';
query ok, 2 rows affected (0.00 sec)
rows matched: 2 changed: 2 warnings: 0
mysql> flush privileges;
mysql> select user,host,password from mysql.user;
+------+-----------+-------------------------------------------+
| user | host | password |
+------+-----------+-------------------------------------------+
| xly | localhost | *81f5e21e35407d884a6cd4a731aebfb6af209e1b |
| yxl | localhost | *23ae809ddacaf96af0fd78ed04b6a265e05aa257 |
| xly | % | *6bb4837eb74329105ee4568dda7dc67ed2ca2ad9 |
+------+-----------+-------------------------------------------+
3 rows in set (0.00 sec)