玖叶教程网

前端编程开发入门

Windows下postgresql安装步骤(超级详细)

这里以postgresql-10.16-1-windows-x64版本为例:

一般数据存放根据软件安装路径生成,前面设置了软件安装路径,这里路径自动生成,一般默认即可

我是如何迁移一个 3TB 的 PostgreSQL 数据库数据的

轻松入门PostgreSQL:安装和设置数据库的完整指南!

当涉及到安装和设置 PostgreSQL 数据库时,以下是一些重要的步骤和指南,可以帮助你开始使用 PostgreSQL 并逐渐提升你的技能。

下载和安装 PostgreSQL:

PostgreSQL基本操作

1.psql简单使用

进入到postgresql 命令行

[root@node1 ~]# su - postgres
Last login: Sat Feb 27 03:45:04 GMT 2021 on pts/1
-bash-4.2$ psql
psql (13.2)
Type "help" for help.

查看有哪些数据库
postgres=# \l
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
(3 rows)

postgres=#

或者
-bash-4.2$ psql -l
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
(3 rows)
<< < 3 4 5 6 7 >>
控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言