这里以postgresql-10.16-1-windows-x64版本为例:
一般数据存放根据软件安装路径生成,前面设置了软件安装路径,这里路径自动生成,一般默认即可
2024年04月26日
这里以postgresql-10.16-1-windows-x64版本为例:
一般数据存放根据软件安装路径生成,前面设置了软件安装路径,这里路径自动生成,一般默认即可
2024年04月26日
当涉及到安装和设置 PostgreSQL 数据库时,以下是一些重要的步骤和指南,可以帮助你开始使用 PostgreSQL 并逐渐提升你的技能。
2024年04月26日
进入到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)