Mysql使用者權限管理,mysql許可權管理

來源:互聯網
上載者:User

Mysql使用者權限管理,mysql許可權管理

[Author]: kwu 

Mysql使用者權限管理


1、修改root使用者名稱密碼

set password for 'root'@'%'=password('123456'); 
% 代表所有的IP,password函數設定密碼


2、建立使用者並分配相應的資料庫許可權

CREATE USER tom IDENTIFIED BY 'Abcd1234';GRANT ALL PRIVILEGES ON data_analysis.* TO 'tom'@'%' IDENTIFIED BY 'Abcd1234';


3、重新整理許可權

flush privileges; 





相關文章

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.