该文档主要说明不同的数据库引擎在给数据库自治服务 DAS (原 HDM)授权账号时,需要的最小权限,如果不满足最小权限,DAS的连通测试将返回权限不足。

以下以账号名是das_test进行说明(其中identified by后面的密码,请用户自行设置)。
GRANT SHOW DATABASES, PROCESS, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'das_test'@'%' identified by '密码';
GRANT SELECT ON *.* TO 'das_test'@'%';

RDS MySQL授权

GRANT PROCESS, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'das_test'@'%' identified by '密码';
GRANT SELECT ON *.* TO 'das_test'@'%';

MongoDB 授权

use admin;
db.createUser({user:'${user}',pwd:'${password}',roles:[{role:'readAnyDatabase', db:'admin'}, {role:'clusterMonitor', db:'admin'}]})