ITPub博客

首页 > 数据库 > > TimescaleDB数据库建立在PostgreSQL基础上

TimescaleDB数据库建立在PostgreSQL基础上

作者:u_9ff4c058a0e0 时间:2022-05-12 15:58:44 0 删除 编辑

安装:postgresql
https://www.postgresql.org/download/

1.直接TimescaleDB数据库,这个时候会提示你,如果没有安装过postgresql ,则会让你安装
https://docs.timescale.com/timescaledb/latest/how-to-guides/install-timescaledb/self-hosted/

安装好后启动
启动:service postgresql start

2.安装pgadmin,选择下载windows版本提供桌面应用程序的postgresql接入
或者安装navicat:https://www.navicat.com.cn/download/navicat-for-postgresql
navicat收费的需要破解或者购买
在这里插入图片描述
以下2个地址都可以下载
https://www.postgresql.org/ftp/
https://www.pgadmin.org/download/

注意:
pg_hba.conf中必须要添加一行

host    all             all             0.0.0.0/0              password

postgresql.conf中修改为如下

listen_addresses = '*'          # what IP address(es) to listen on;
                                        # comma-separated list of addresses;
                                        # defaults to 'localhost'; use '*' for all

最后重启即可

数据库操作:
PostgreSQL

文档参考:https://www.postgresql.org/docs/13/index.html
版本查询:psql --version
命令行cli登入:psql -U postgres -h localhost
重启命名:service postgresql restart
连接TimescaleDB:psql -U postgres -h localhost -d tutorial

查看运行端口:netstat -a | grep PGSQL



来源 https://www.cnblogs.com/InternetJava/p/15731299.html

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69999831/viewspace-3146711/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2022-02-11

  • 博文量
    1828
  • 访问量
    20600