当前位置:网站首页>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_1
If 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!
边栏推荐
- 【每日一道LeetCode】——191. 位1的个数
- 高并发秒杀项目总结
- - daily a LeetCode 】 【 191. A number of 1
- Tensorflow2.0 confusion matrix does not match printing accuracy
- 牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
- MySQL函数(经典收藏)
- 第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结
- The 17th "Revitalization Cup" National Youth Vocational Skills Competition - Computer Programmers (Cloud Computing Platform and Operation and Maintenance) Participation Review and Summary
- crontab中写go run不执行的问题
- What is the value of biomedical papers? How to translate the papers into Chinese and English?
猜你喜欢
Cesium加载离线地图和离线地形
coming!Dongfang Selection brings goods to the live broadcast of Longjiang agricultural products
MySQL database - views and indexes
NXP IMX8QXP replacement DDR model operation process
VS Code connects to SQL Server
阿里云武林头条活动分享
VBA批量将Excel数据导入Access数据库
MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?
[PyTorchVideo Tutorial 01] Quickly implement video action recognition
SimpleOSS第三方库libcurl与引擎libcurl错误解决方法
随机推荐
阿里云武林头条活动分享
ResNet18-实现图像分类
Google's AlphaFold claims to have predicted almost every protein structure on Earth
LeetCode 0952.按公因数计算最大组件大小:建图 / 并查集
crontab中写go run不执行的问题
The problem of writing go run in crontab does not execute
[hbuilder] cannot run some projects, open the terminal and cannot enter commands
requet.getHeader("token") is null
第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结
MindSpore:对image作normalize的目的是什么?
经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法
SimpleOSS third-party library libcurl and engine libcurl error solution
MySQL分组后取最大一条数据【最优解】
Correct pose of Vulkan open feature
[PyTorchVideo Tutorial 01] Quickly implement video action recognition
深入浅出边缘云 | 3. 资源配置
自己需要努力
VBA 运行时错误‘-2147217900(80040e14):自动化(Automation)错误
ImportError:attempted relative import with no known parent package
MindSpore:【模型训练】【mindinsight】timeline的时间和实际用时相差很远