日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

2.3.5 mysql角色管理

發布時間:2024/9/3 数据库 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 2.3.5 mysql角色管理 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
--04、用戶角色管理 mysql5.7:proxies_priv(模擬角色),可以實現用戶組的管理 角色(roLe)可以批量管理用戶,同一個角色下面的數據都有相同的權限 mysql 5.7是通過 mysql.proxies_priv來模擬實現。 參數: check_proxy_users=on mysqL_native_password_proxy_users=on 01.啟用 proxy show variables like '%proxy%' mysql root@localhost:mysql> show variables like '%proxy%' +-----------------------------------+-------+ | Variable_name? ? ? ? ? ? ? ? ? ?? | Value | +-----------------------------------+-------+ | check_proxy_users? ? ? ? ? ? ? ?? | OFF?? | | mysql_native_password_proxy_users | OFF?? | | proxy_user? ? ? ? ? ? ? ? ? ? ? ? |? ? ?? | | sha256_password_proxy_users? ? ?? | OFF?? | +-----------------------------------+-------+ set global check_proxy_users=on set global mysql_native_password_proxy_users=on 如果永久打開,需要加入到my.cnf參數文件中,重啟生效 02.創建用戶 create user 'itpux_dba' #類似組/角色 create user itpux11 create user itpux12 create user itpux13 03.將 itpux_dba權限映射到 itpux11/ itpux12 grant proxy on itpux_dba to itpux11 grant proxy on itpux_dba to itpux12 04.給 itpux_dba(模擬的role)賦予實際的權限 grant select on itpux.* to itpux_dba flush privileges; 05.檢查權限并測試 show grants for itpux_dba show grants for itpux11 show grants for itpux12 show grants for itpux13 select * from mysql.proxies_priv 然后分別用4個用戶登錄測試。 06.代理權限取消 revoke proxy on itpux_dba from itpux11

總結

以上是生活随笔為你收集整理的2.3.5 mysql角色管理的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。