main
黄海 1 year ago
parent 855b23cbcd
commit e1ced310ff

@ -94,14 +94,14 @@ public class PgUtil {
public static String READ = "SELECT";
/**
vi /usr/local/postgresql/data/pg_hba.conf
host all all 0.0.0.0/0 md5
# https://www.cnblogs.com/kgdxpr/p/17791946.html
#
su - pgsql
/usr/local/postgresql/bin/pg_ctl -D /usr/local/postgresql/data -l logfile restart
*
* vi /usr/local/postgresql/data/pg_hba.conf
*
* host all all 0.0.0.0/0 md5
* # https://www.cnblogs.com/kgdxpr/p/17791946.html
* #
* su - pgsql
* /usr/local/postgresql/bin/pg_ctl -D /usr/local/postgresql/data -l logfile restart
*/
public static void main(String[] args) {
//初始化
@ -128,7 +128,7 @@ public class PgUtil {
PgUtil.grantUserPrivilege(user_name, s, WRITE);
}
List<Record> list=PgUtil.getUserPrivilege(user_name);
List<Record> list = PgUtil.getUserPrivilege(user_name);
for (Record record : list) {
System.out.println(record);

Loading…
Cancel
Save