1.安装版本:postgresql-10.5-2-windows-x64.exe
安装完成后:
问题1:windows service未安装
解决方法:pg_ctl register -N PostgreSql -D "data目录”
问题2:服务安装后并不能启动
解决方法:initDB -D “data目录”
问题3:服务启动后,出现database不存在
解决方法:createdb weian
问题4:使用psql命令时出现“not enough memory”
psql weian
psql (10.5)
WARNING: Console code page (65001) differs from Windows code page (936)
8-bit characters might not work correctly. See psql reference
page "Notes for Windows users" for details.
解决方法:在command line中使用chcp 936
本文详细介绍了如何在Windows环境下安装PostgreSQL 10.5,并提供了针对安装过程中可能遇到的四个常见问题的解决方案,包括windowsservice未安装、服务安装后无法启动、database不存在以及使用psql命令时出现内存不足警告。
4万+

被折叠的 条评论
为什么被折叠?



