久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

幫助中心 >  技術知識庫 >  網站相關 >  建站知識 >  如何在centos6.5系統修改MySQL默認用戶root的密碼

如何在centos6.5系統修改MySQL默認用戶root的密碼

2016-06-24 15:39:48 11442

1.用默認賬號密碼登錄MySQL服務端

[root@domin ~]# mysql -u root -p

2.切換到mysql庫

mysql> use mysql;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

3.執行更改密碼的語句

mysql> update user set password=password('landui') where user='root';

Query OK, 3 rows affected (0.01 sec)

Rows matched: 3  Changed: 3  Warnings: 0

4.刷新權限表

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

5.現在退出就可以用新密碼登錄啦~

mysql> exit;

Bye


提交成功!非常感謝您的反饋,我們會繼續努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務,我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: