摘要:
--新建用户 CREATE USER 'feng'@'%' IDENTIFIED BY '123'; --给用户赋予test2数据库的user表的只读权限 GRANT SELECT ON test2.user TO 'feng'@'%'; --给用户赋予test2数据库所有表的只读权限 GRANT 阅读全文
摘要:
1.pom.xml配置 <!-- 读写分离api --> <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-boot-starter</artifactId> <ver 阅读全文