好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

mysql密码修改 - mysql数据库栏目 - 自学php

[root@slave1 ~]# mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

使用带密码的root用户登录后,修改密码即可,如下:

mysql> update user set password=password('') where user = 'root'; Query OK, 0 rows affected (0.00 sec) Rows matched: 2 Changed: 0 Warnings: 0

重启mysql,即可用mysql无密码登录了

查看更多关于mysql密码修改 - mysql数据库栏目 - 自学php的详细内容...

  阅读:54次