密保三權用戶

PostgreSQL

//系統管理員
CREATE USER dsSys WITH PASSWORD '123456';
//安全管理員
CREATE USER dsSafe WITH PASSWORD '123456';
//審記管理員
CREATE USER dsAudit WITH PASSWORD '123456';

 

MariaDB

create user dsAudit@'%' identified by 'DsideaL147258369';
mysql -uroot -pDsideaL147258369 -e "grant show databases,show view,select on *.* to 'dsAudit'@'%'"

create user dsSafe@'%' identified by 'DsideaL147258369';
mysql -uroot -pDsideaL147258369 -e "grant create user on *.* to 'dsSafe'@'%'"

create user dsSys@'%' identified by 'DsideaL147258369';
mysql -uroot -pDsideaL147258369 -e "grant create,drop,alter,select on *.* to 'dsSys'@'%'"

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章