草庐IT

postgresql-9.6

全部标签

linux - Centos 7 上带有自定义 PGDATA 的 Postgresql 9.3

我正在尝试在Centos7上的自定义目录中设置Postgresql9.3服务器(通过yum安装),在我的例子中,该目录是在启动时安装的加密分区(/custom_container/database)。由于某种原因,Postgresql的行为与手册中应有的不同,并且在服务启动时出错。注意:它不想接受我设置的PGDATA环境变量,运行的时候su-postgres-c'/usr/pgsql-9.3/bin/initdb'(假定PGDATA目录归postgres:postgres所有)集群在默认目录/var/lib/pgsql/9.3/data/中初始化改变它的唯一方法是使用su-postgr

sql - 学习 PostgreSQL

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答它。关闭7年前。Improvethisquestion在Linux环境中开始学习PostgreSQL管理和编程的最佳起点是什么?哪些网站最值得推荐,简洁易学的教程?我已经通过使用SQLServer和MySQL熟悉了ANSISQL;但是,我以前从未接触过PostgreSQL。不胜感激。

sql - 学习 PostgreSQL

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答它。关闭7年前。Improvethisquestion在Linux环境中开始学习PostgreSQL管理和编程的最佳起点是什么?哪些网站最值得推荐,简洁易学的教程?我已经通过使用SQLServer和MySQL熟悉了ANSISQL;但是,我以前从未接触过PostgreSQL。不胜感激。

linux - 从 Postgresql 9.1 升级到 9.3 时为 "cannot write to log file pg_upgrade_internal.log"

每当我通过postgres用户运行以下命令时,我都会收到上述错误。/usr/lib/postgresql/9.3/bin/pg_upgrade\-b/usr/lib/postgresql/9.1/bin/\-B/usr/lib/postgresql/9.3/bin/\-d/var/lib/postgresql/9.1/main\-D/var/lib/postgresql/9.3/maincannotwritetologfilepg_upgrade_internal.logFailure,exiting我使用的是Ubuntu13.10。Postgresql9.1和9.3均正常运行。

linux - 从 Postgresql 9.1 升级到 9.3 时为 "cannot write to log file pg_upgrade_internal.log"

每当我通过postgres用户运行以下命令时,我都会收到上述错误。/usr/lib/postgresql/9.3/bin/pg_upgrade\-b/usr/lib/postgresql/9.1/bin/\-B/usr/lib/postgresql/9.3/bin/\-d/var/lib/postgresql/9.1/main\-D/var/lib/postgresql/9.3/maincannotwritetologfilepg_upgrade_internal.logFailure,exiting我使用的是Ubuntu13.10。Postgresql9.1和9.3均正常运行。

linux - PostgreSQL 无法启动 : "server.key" has group or world access

当我使用命令启动PostgreSQL时:$sudo/etc/init.d/postgresqlstartPg没有启动。报错是:*StartingPostgreSQL8.4databaseserver*ThePostgreSQLserverfailedtostart.Pleasecheckthelogoutput:2010-01-2122:10:00PSTFATAL:privatekeyfile"server.key"hasgrouporworldaccess2010-01-2122:10:00PSTDETAIL:Filemustbeownedbythedatabaseuserorroo

linux - PostgreSQL 无法启动 : "server.key" has group or world access

当我使用命令启动PostgreSQL时:$sudo/etc/init.d/postgresqlstartPg没有启动。报错是:*StartingPostgreSQL8.4databaseserver*ThePostgreSQLserverfailedtostart.Pleasecheckthelogoutput:2010-01-2122:10:00PSTFATAL:privatekeyfile"server.key"hasgrouporworldaccess2010-01-2122:10:00PSTDETAIL:Filemustbeownedbythedatabaseuserorroo

php - 为已安装的 PHP 添加 PostgreSQL 支持

我的Fedora13中安装了php-5.3.6和postgresql。但是php似乎没有启用postgresql支持。我的phpinfo()页面不显示任何PostgreSQL部分,也不显示pdo_pgsql部分。我检查了/etc/php.ini,它显示PostgresSQL已启用。[root@localhost~]#cat/etc/php.ini|grep^pgsqlpgsql.allow_persistent=Onpgsql.auto_reset_persistent=Offpgsql.max_persistent=-1pgsql.max_links=-1pgsql.ignore_n

php - 为已安装的 PHP 添加 PostgreSQL 支持

我的Fedora13中安装了php-5.3.6和postgresql。但是php似乎没有启用postgresql支持。我的phpinfo()页面不显示任何PostgreSQL部分,也不显示pdo_pgsql部分。我检查了/etc/php.ini,它显示PostgresSQL已启用。[root@localhost~]#cat/etc/php.ini|grep^pgsqlpgsql.allow_persistent=Onpgsql.auto_reset_persistent=Offpgsql.max_persistent=-1pgsql.max_links=-1pgsql.ignore_n

php - Laravel 5 与 PostgreSQL

我正在使用postgres作为数据库开发Laravel5。我已经配置了postgres9.4和pgAdminIII,它们工作正常。当我尝试运行migrate时出现错误:[PDOException]couldnotfinddriver这是我的database.php'default'=>'pgsql','pgsql'=>['driver'=>'pgsql','host'=>'127.0.0.1','database'=>'fms','username'=>'postgres','password'=>'root','charset'=>'utf8','prefix'=>'','schem