在使用mycat中,mycat里面也有一套单独的用户体系,因此我们可以在mycat上创建用户,创建使用的注解语法是:
/*+ mycat:createUser{
"username":"${username}",
"password":"${password}",
"ip":"${ip}",
"transactionType":"xa"
} */这里的注解创建的比较简单,但是创建之后,会在mycat安装包下生成对应的user用户配置文件,文件位于:${mycat_home}/conf/users文件夹下,如图:
本文我们介绍下这个配置文件的所有参数,详情见如下表格:
| 序号 | 参数 | 说明 |
| 1 | isolation | |
| 2 | transactionType | |
| 3 | encryptType | |
| 4 | encodeKey | 使用RSA的时候生效 |
| 5 | password | 用户密码 |
| 6 | username | 用户名 |
| 7 | ip | 建议为空,填写后会对客户端的ip进行限制 |


还没有评论,来说两句吧...