zoukankan      html  css  js  c++  java
  • TimescaleDB数据库建立在PostgreSQL基础上

    安装: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
    
  • 相关阅读:
    SVN服务的配置与管理
    SVN配置多仓库与权限控制
    SVN使用详解
    这个问题他又来了,如何学编程!
    乘风破浪的程序员们
    Java 学习路线(史上最全 2020 版 ~ 持续更新中)
    P4782 【模板】2-SAT 问题
    HDU
    2020.8.3
    Interesting Computer Game
  • 原文地址:https://www.cnblogs.com/InternetJava/p/15731299.html
Copyright © 2011-2022 走看看