当前位置:网站首页>How to install and use PostgreSQL 14.4
How to install and use PostgreSQL 14.4
2022-07-30 19:36:00 【Yisuyun】
How to install and use PostgreSQL 14.4
This article mainly explains "How to install and use PostgreSQL 14.4". The content of the explanation in the article is simple and clear, easy to learn and understand. Please follow the ideas of the editor to study and understand together.Learn how to install and use PostgreSQL 14.4!
Installation and use of PostgreSQL 14
First download the file, just go to the official website to download it

Double-click to open the installation package after downloading
Most of the content is all the way to next
Installation path settings

Additional function software settings

Installation path settings

Set password

Port number

Language

Then click all the way to complete the installation
To operate with cmd, initialize the database and start the server
cd to the corresponding directory
Using commands
initdb.exe -D D:\postgresql 14\data -E UTF-8 --locale=chs -U postgres -W3
If the directory contains spaces, it may prompt an error
This time use the following
initdb.exe -D "D:\postgresql 14\data" -E UTF-8 --locale=chs -U postgres -W3
In the middle, the password of the super user will be entered, and you can enter it by yourself

There is a command to start the database in the prompt:
pg_ctl -D "D:\postgresql 14\data" -l logfile start
It should be able to go down normally, but I reported an error here, indicating that access is denied

In this case, enter the command
pg_ctl.exe start -D ..\data
Generally speaking, it is ok. If it still doesn't work, it may be the permission problem of the data folder. You need to see if the permission is missing.

Open the installed pgadmin, the path is not difficult to find

After opening the application, you can set the Chinese language first

Then you can create a new server

The local word is 127.0.0.1, and the rest should be understandable in Chinese. You can enter the address and password without changing the account number.

You can use Navicat to connect after creation
Navicat's connection will not take screenshots, everyone who has used it knows where it comes from

Try if it works for yourself
CREATE table test_1(test VARCHAR(50),test1 VARCHAR(50));INSERT INTO test_1(test,test1)VALUES('qqq','www');select * fromtest_1If it can be found out, it should be no problem, but basically there should be no problem at this stage

It is estimated that the syntax is a bit different from oracle, and you can take a closer look when you have time
You can also query through pgadmin

Thank you for reading, the above is the content of "How to install and use PostgreSQL 14.4". After the study of this article, I believe that everyone has a deeper understanding of how to install and use PostgreSQL 14.4.The specific usage needs to be verified by everyone.Here is Yisuyun, the editor will push more articles about relevant knowledge points for you, welcome to pay attention!
边栏推荐
- MindSpore:【Resolve node failed】解析节点失败的问题
- 第一次进入小程序判断
- LeetCode 0952.按公因数计算最大组件大小:建图 / 并查集
- VS Code 连接SQL Server
- The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
- Trial writing C language sanbang
- 阿里面试官:给我描述一下缓存击穿的现象,并说说你的解决思路?
- 牛客网——华为题库(100~108)
- 云数据库和本地数据库有什么区别?
- NXP IMX8QXP更换DDR型号操作流程
猜你喜欢

Encapsulates a console file selector based on inquirer

经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法

Alibaba Cloud Martial Arts Headline Event Sharing

浅聊对比学习(Contrastive Learning)第一弹

centos7安装mysql8

MindSpore:ImageFolderDataset数据读取问题

第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结

解决终极bug,项目最终能顺利部署上线。

MindSpore:【JupyterLab】按照新手教程训练时报错

【每日一道LeetCode】——191. 位1的个数
随机推荐
Go system collection
VBA runtime error '-2147217900 (80040e14): Automation error
Vulkan开启特征(feature)的正确姿势
【hbuilder】运行不了部分项目 , 打开终端 无法输入指令
Witness the magical awakening of the mini world in HUAWEI CLOUD
【网站放大镜效果】两种方式实现
VS Code 连接SQL Server
牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)
经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法
Tensorflow2.0 混淆矩阵与打印准确率不符
- daily a LeetCode 】 【 191. A number of 1
Swiper rotates pictures and plays background music
centos7安装mysql8
win2003下FTP服务器如何搭建
解决终极bug,项目最终能顺利部署上线。
Alibaba Cloud Martial Arts Headline Event Sharing
监听开机广播
MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
Zabbix 5.0 Monitoring Tutorial (1)
Common linked list problems and their Go implementation