4. 在mysql中创建用户temp, 测试图方便, 用ALL on *.*就行, 在官方文档中, 有列出这个用户需要的具体权限, 如下
点击(此处)折叠或打开
GRANT ALL PRIVILEGES ON mysql_innodb_cluster_metadata.* TO your_user@'%' WITH GRANT OPTION; GRANT RELOAD, SHUTDOWN, PROCESS, FILE, SUPER, REPLICATION SLAVE, REPLICATION CLIENT, / CREATE USER ON *.* TO your_user@'%' WITH GRANT OPTION; GRANT SELECT ON performance_schema.* TO your_user@'%' WITH GRANT OPTION; GRANT SELECT ON *.* TO your_user@'%' WITH GRANT OPTION; GRANT SELECT, INSERT, UPDATE, DELETE ON mysql.* TO your_user@'%' WITH GRANT OPTION