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

MySQL命令行創建用戶

2016-03-22 15:47:47 10589

第一步:mysql -u root -p

第二步:進入根用戶use mysql

第三步:創建用戶名create user username;(相當于grant select,insert,update,delete on *.* to user1@localhost Identified by "password1";

第四步:給用戶賦登錄密碼update.user set password=password('password1') where user="username"; 也可以在root用戶下用此命令修改其他數據庫密碼

第五步:給用戶授予所有的權限grant all privileges on *.* to username@"%" Identified by "password1" with grant option;

123.png


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

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

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

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