
postgresql
zgahxxwht
这个作者很懒,什么都没留下…
-
原创 打开postgres数据库的登录、退出日志
查看登录/退出日志是否打开show log_connections;show log_disconnections;打开日志alter system set log_connections=on;system set log_disconnections=on;2020-04-26 09:58:57207
0
-
原创 centos 8 docker安装postgresql修改密码,远程访问设置
一,修改密码1,进入容器docker exec -it 834f03380346 bash2,修改密码二,远程访问设置1,修改配置文件1)、修改pg_hba.conf文件配置用户的访问权限(#开头的行是注释内容): # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Un...2020-01-14 11:16:261339
0
-
原创 asp.netcore连接postgres数据库 codefirst
1,nuget包2,模型 public class TestContext:DbContext { public DbSet<Blog> Blogs { get; set; } public DbSet<Post> Posts { get; set; } protected override void ...2019-03-20 17:36:161437
0
-
原创 Postgresql 仿INSTR
1,CREATE FUNCTION instr(varchar, varchar) RETURNS integer AS $$DECLARE pos integer;BEGIN pos:= instr($1, $2, 1); RETURN pos;END;$$ LANGUAGE plpgsql STRICT IMMUTABLE;2,CREATE FUNCTION...2019-10-12 17:08:25418
0
-
原创 获取数据库某库中的所有表
1,Postgresqlstring sql = "Host=**;Port =5432; Username=**;Password=**;Database=**;"; NpgsqlConnection conn = new NpgsqlConnection(sql); NpgsqlCommand cmd =conn.CreateComman...2019-09-05 11:37:4243
0
-
翻译 Ubuntu 19.04安装postgresql-11和pgadmin4
安装postgresql-11sudo apt-get install postgresql-11 查看postgresql运行状态:systemctl status postgresql安装pgadmin41, sudo apt install python3-pip2,下载pgadmin4的python 包 https://www.post...2019-06-28 14:29:17472
0
-
原创 ubuntu postgresql 允许远程连接
一、修改pg_hba.conf文件,配置用户的访问权限(#开头的行是注释内容): # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust # IPv4 loc...2019-05-27 18:30:20947
0
-
转载 Please configure the PostgreSQL Binary Path in the Preferences dialog
1,查找地址终端输入:which psql结果:/usr/bin/psql2,3,修改为/user/bin2019-05-27 17:56:121063
0