Linux下Mysql安裝後設定密碼,linuxmysql

來源:互聯網
上載者:User

Linux下Mysql安裝後設定密碼,linuxmysql

在Centos中安裝Mysql後預設的是沒有root密碼的,預設的是斷行符號,

那麼為了方便需要修改密碼。

沒有密碼為MYSQL加密碼:mysql -uroot -p斷行符號提示輸入密碼,為空白斷行符號update mysql.user set password=PASSWORD('12345678') where user='root';重新整理許可權表,輸入如下命令flush privileges;退出quit

相關文章

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.