当前位置:网站首页>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!
边栏推荐
- Google's AlphaFold claims to have predicted almost every protein structure on Earth
- Range.CopyFromRecordset 方法 (Excel)
- The problem of writing go run in crontab does not execute
- centos7安装mysql8
- Perfectly Clear QuickDesk & QuickServer图像校正优化工具
- 尊重客观事实
- MindSpore:Cifar10Dataset‘s num_workers=8, this value is not within the required range of [1, cpu_thr
- JS提升:Promise中reject与then之间的关系
- Is the iPhone really thirteen incense?The two generations of products are completely compared, perhaps the previous generation is more worth buying
- Golang logging library zerolog use record
猜你喜欢
随机推荐
数据库索引:索引并不是万能药
ResNet18-实现图像分类
LeetCode每日一题(1717. Maximum Score From Removing Substrings)
尊重客观事实
Download Win11 how to change the default path?Download Win11 change the default path method
【Prometheus】Prometheus联邦的一次优化记录[续]
VBA批量将Excel数据导入Access数据库
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
LocalDate时间生成
M3SDA:用于多源域自适应的矩匹配
架构师如何成长
已删除
刷题记录----字符串
[PyTorchVideo Tutorial 01] Quickly implement video action recognition
第一次进入小程序判断
云数据库和本地数据库有什么区别?
coming!Dongfang Selection brings goods to the live broadcast of Longjiang agricultural products
VBA 运行时错误‘-2147217900(80040e14):自动化(Automation)错误
Perfectly Clear QuickDesk & QuickServer图像校正优化工具
Range.CopyFromRecordset 方法 (Excel)