MySQL的root密碼由空改為123456

來源:互聯網
上載者:User

MySQL的root密碼由空改為123456

要求:MySQL的root密碼由空改為123456。

使用mysqladmin

mysqladmin -u root -p password mypasswd

輸入這個命令後,需要輸入root的原密碼(空的),然後root的密碼將改為mypasswd。

[work@master bin]$ mysqladmin -u root password 123456

[work@master bin]$

以上命令執行完後,第二行為空白,這說明你的密碼已經更新成功了。

root密碼為123456了。

MySQL 修改使用者密碼及重設root密碼

MySQL修改密碼和忘記ROOT密碼

CentOS 6.4下安裝MySQL後重設root密碼方法

本文永久更新連結地址:

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.