MySQL中:
创建用户:
create user 'zy'@'localhost' ifentified by '123456';
给用户赋予权限:
grant all privileges on *.* to zy@localhost;
flush privileges;
人大金仓中:
在人大金仓中,需要先进入数据库,选中数据库的模式public, 然后执行:
grant all privileges on all tables in schema public to zy;
grant all privileges on all sequences in schema public to zy;
grant all privileges on database 'db-test' to zy;
grant all privileges on schema public to zy with grant option;
解决人大金仓系统数据库和项目中表名重复的问题:
修改金仓的data目录下的kingbase.conf文件,将search_path打开:
这里打开之后,到数据库检查一下,在当前数据库的 public模式下执行下面三条语句:
这里我的sys_config表与系统的视图重复了,所以查的是这个
SHOW search_path;
ALTER DATABASE geomis SET SEARCH_PATH="$user", public, sys, sys_catalog;
SELECT * FROM sys_config;