1. 创建用户和授权
CREATE USER chentest WITH PASSWORD ' 123456' VALID UNTIL '2020-04-28'; ALTER USER chenrenxun CONNECTION LIMIT 20 login; GRANT CONNECT ON DATABASE tenant_1008439 TO chenrenxun; GRANT USAGE ON SCHEMA public TO chenrenxun; GRANT SELECT,update,INSERT,delete ON ALL TABLES IN SCHEMA public TO chenrenxun; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO chenrenxun;
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/3971.html