授予mysql的其他使用者資料庫的使用許可權

2022-07-19 06:30:22 字數 343 閱讀 2080

場景:不同的開發人員有不同的資料庫的許可權;也可適用於外包公司不同的開發許可權。

root使用者登入資料庫,命令列執行下面語句即可。

grant select,delete,update,create,drop on 資料庫名.* to '使用者名稱'@'%';

或者:grant all on 資料庫名.* to '使用者名稱'@'%';

例如:

grant select,delete,update,insert,create,drop on test.* to 'kfuser'@'%';

或grant all on test.* to 'kfuser'@'%';

mysql使用者 資料庫設計 mysql 資料庫設計

資料庫設計 需求分析 1.使用者模組 用於記錄記錄註冊使用者資訊 包括屬性 使用者名稱,密碼,郵箱,身份證號,位址,姓名,暱稱 可選唯一標誌屬性 使用者名稱,身份證號 儲存特點 隨系統上線時間逐漸增加,需要永久儲存 商品模組 用於記錄記錄註冊使用者資訊 包括屬性 商品編碼,商品名稱,商品品類,重量,...

MySQL建立使用者 資料庫 賦權

在機器上登入mysql mysql u root p1 建立使用者 create user 使用者名稱 localhost identified by 密碼 create user 使用者名稱 identified by 密碼 2 重新整理mysql的系統許可權相關表 flush privilege...

mysql 使用者 資料庫 表的基本操作

進入 mysql u使用者名稱 p密碼 退出 qexit 建立使用者 建立 create user fyn identified by qwe123 賦予許可權 grant all on to fyn 立即生效 flush privileges 查詢當前使用者 select user 刪除使用者 d...