当前位置:网站首页>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!
边栏推荐
- 解决终极bug,项目最终能顺利部署上线。
- 牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)
- [flink] Error finishing Could not instantiate the executor. Make sure a planner module is on the classpath
- Google's AlphaFold claims to have predicted almost every protein structure on Earth
- The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
- 电脑死机的时候,发生了什么?
- ImportError: attempted relative import with no known parent package
- Vulkan开启特征(feature)的正确姿势
- 跨域问题的解决方法
- Go system collection
猜你喜欢

防抖和节流有什么区别,分别用于什么场景?

- daily a LeetCode 】 【 191. A number of 1

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

Does the satellite phone communicate directly with the satellite or through a ground station?

LeetCode 0952. Calculate Maximum Component Size by Common Factor: Mapping / Union Search

The Meta metaverse division lost 2.8 billion in the second quarter!Still want to keep betting?Metaverse development has yet to see a way out!

已删除

VBA批量将Excel数据导入Access数据库

MySQL database - DQL data query language

阿里面试官:给我描述一下缓存击穿的现象,并说说你的解决思路?
随机推荐
[Private Series] All kinds of strange problems encountered in daily PHP
尊重客观事实
The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
阿里面试官:给我描述一下缓存击穿的现象,并说说你的解决思路?
MongoDB打破了原则引入SQL?
Witness the magical awakening of the mini world in HUAWEI CLOUD
ImportError:attempted relative import with no known parent package
VBA runtime error '-2147217900 (80040e14): Automation error
【网站放大镜效果】两种方式实现
【刷题篇】计算质数
MindSpore:【JupyterLab】查看数据时报错
ResNet18-实现图像分类
crontab中写go run不执行的问题
Listen to the boot broadcast
还有三天忙完
第一次进入小程序判断
mysql慢查询优化
golang日志库zerolog使用记录
牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)