正文
postgresql教程6,POSTGRESQL和mysql
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
如何在windows下手动初始化PostgreSQL数据库
到postgresql安装目录的bin文件夹下手动启动pg_ctl—— pg_ctl start -w -D ../data,未果,但是提示说某个文件没有权限创建。 解决办法是将整个postgreSQL安装目录附一个Everyone的权限。
根据自己电脑操作系统的版本和位数下载相应的软件版本。我的电脑为Win8 64位系统,所以选择下载了postgresql-4-1-windows-x64这个版本。执行安装 右击文件选择以管理员身份运行。开始执行程序的安装。
然而,在某些系统中,只有一种 FAT 分区,这种情况下,可以正常安装 PostgreSQL,但不要进行数据库的初始化工作。
方法一:右键单击“postgres”,选择“新建对象”--新建数据库,设置新的数据库的参数,所有者一般默认为“postgres”新建完后,不能立即看到界面上更新的数据,需要点击界面上的更新按钮才能够看到数据库的变化情况。
说明一下:“template1”是Postgresql在初始化时自动创建的测试数据库。
如何安装PostgreSQL
如果是安装PostgreSQL客户端:sudo apt-get install postgresql-client 如果是安装PostgreSQL服务器:sudo apt-get install postgresql 正常情况下,安装完成后,PostgreSQL服务器会自动在本机的5432端口开启。
配置PostgreSQL对应的yum源 使用命令:dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm,获取yum配置文件。
安装 首先,安装PostgreSQL客户端。sudo apt-get install postgresql-client 然后,安装PostgreSQL服务器。sudo apt-get install postgresql 正常情况下,安装完成后,PostgreSQL服务器会自动在本机的5432端口开启。
PostgreSQL的现有版本在不增加可供购买的商业应用包时,并不降低其使用价值,反而由于它的plpgsql包和C及ODBC接口的存在,使数据库系统在二次开发的过程中,可最大程度地保护已经投入的程序资产。
谁能给我推荐个好的数据库教程
1、Oracle数据库基础及应用 这本书上面的应用较为详细,我们学习起来会容易一些,非常好的一本数据库入门书籍。
2、二:《SQL Server 数据库设计与系统开发教程》清华大学出版社 唐红亮 主编 这本书虽说没什么牛逼的头衔,但是绝对是一本不错的教材,全书用两个实际的项目来诠释SQL的各个知识点,语言通俗,但基本知识点都讲得很清楚。
3、《Oracle DBA手记》豆瓣评分:8 盖国强、杨廷琨、熊军等几位牛人一起写的,不解释了。 《Oracle数据库性能优化》豆瓣评分:7 实战性很强。
关于postgresql教程6和POSTGRESQL和mysql的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。