草庐IT

postgresql_installer_d

全部标签

php - 无法使用 laravel Eloquent ORM 插入到 PostgreSQL

在发布这篇文章之前,我做了很多研究。尝试使用LaravelEloquentORM将记录插入PostgreSQL时出现以下错误。这是错误:Illuminate\Database\QueryExceptionSQLSTATE[42703]:Undefinedcolumn:7ERROR:column"id"doesnotexistLINE1:...ed_at","created_at")values($1,$2,$3,$4)returning"id"^(SQL:insertinto"fb_post_like_counts"("post_id","count","updated_at","cr

php - 安装了 php71w-gd 并收到错误 GD Library extension not available with this PHP installation

我在centos7服务器和nginx网络服务器上使用laravel网络框架,我安装了php71w-gd,但当我想上传文件时仍然出现此错误Intervention\Image\Exception\NotSupportedExceptionGDLibraryextensionnotavailablewiththisPHPinstallation.你可能需要知道这个#php-i|grepgd/etc/php.d/gd.ini,gdgd.jpeg_ignore_warning=>1=>1 最佳答案 @HamedAbdollahi请检查以下步

php - Symfony 3.4,FOSUserBundle : SQL Errors with postgresql

当我使用MySQL时,我有一个只有id属性的普通用户类工作得很好。自从我改用Postgresql后,我开始遇到很多问题。首先让我概述一下我的应用程序,它是一个网络上的GIS,我放置了一个TSV文件和一个我制作的php脚本,它读取TSV文件并将其数据保存在数据库中。然后Geoserver读取数据并将其提供给我的传单map。所以Postgresql非常重要,因为Geoserver不支持MySQL。首先,我使用命令行工具创建了数据库及其模式。到这里为止一切都很好,但是当我尝试使用命令行创建用户时,它会抛出SQLSTATE[42601]语法错误:InAbstractPostgreSQLDriv

php - 为什么 Assets :install doesn´t copy/Resources/public to/web folder?

我在运行phpapp/consoleasset:install命令时遇到问题。我的操作系统是Windows。我的意图是使用该命令从app/Resources/public复制css、js、图像等文件。运行该命令后,在/web中创建了一个bundles文件夹。但是在创建的bundle文件夹中,没有来自app/Resources/public的任何文件。只有两个文件夹:sensiodistribution和framework。为什么我没有在/web/bundles中获取包含复制资源的AppBundle文件夹? 最佳答案 您的Resour

php - MAC 操作系统 El Capitan 10.11 : Install XDEBUG

我正在寻找调试php脚本的方法。在互联网上,我发现我可以使用MacGDBp+XDebug来做到这一点。当我尝试在Shell中使用PECL安装时:sudopeclinstallxdebugThenexterrorhavebeenoccured:downloadingxdebug-2.4.0.tgz...Startingtodownloadxdebug-2.4.0.tgz(264,832bytes).....................done:264,832bytes76sourcefiles,buildingrunning:phpizegrep:/usr/include/php/m

php - brew install php55-intl 失败,无法安装 Composer

我正在尝试安装npminstall&&grunt,但它告诉我我需要composer。我正在尝试安装Composer,但这取决于php55。我试过brewinstallphp55、php55-intl、php56、php56-intl等我正在阅读此处的说明:https://getcomposer.org/doc/00-intro.md它声明对于Mac我应该简单地使用brew命令:brewupdatebrewtaphomebrew/homebrew-phpbrewtaphomebrew/dupesbrewtaphomebrew/versionsbrewinstallphp55-intl#f

php - 如何为 laravel 设置默认的 postgresql 架构?

我创建了新的postgresql用户:CREATEROLElara_userSUPERUSERLOGINPASSWORD'mypassword';然后创建归该用户所有的模式CREATEschemalaraAUTHORIZATIONlara_user;在Laravel的.env文件中我有DB_DATABASE=postgresDB_USERNAME=lara_userDB_PASSWORD=mypasswordLaravel看不到架构lara并且仍然连接到public架构。如何为Laravel更改和设置默认架构lara? 最佳答案 在

php - 组件安装错误 : JInstaller: :Install: File does not exist

我只是按照这个video创建了一个组件.我创建了名为admin.zip的组件。我在joomla3.0中安装时收到以下警告。WarningJInstaller::Install:FiledoesnotexistC:\wamp\www\Content\tmp\install_52009de34a2c1\site\language\en-GB.com_helloworld.iniJInstaller::Install:FiledoesnotexistC:\wamp\www\Content\tmp\install_52009de34a2c1\admin\language\en-GB.com_h

php - PostgreSQL 中的 Doctrine ORM ArrayCollection

我注意到在PostgreSQL数据库中使用DoctrineORM的ArrayCollection有一些奇怪的事情(在Symfony3项目中使用它)。将我的User类作为角色,它以默认角色ROLE_USER启动,并且必须是array类型。classUserimplementsUserInterface,Serializable{/***@varArrayCollection**@ORM\Column(name="roles",type="array")*/private$roles;publicfunction__construct(){$this->roles=newArrayColl

php - 通过 laravel 连接 Postgresql 数据库的问题

我很难用pgsql设置laravel5.3(在wamp/windows上运行)。当我尝试使用“phpartisanmigrate”迁移表时出现错误“PDOException-Couldnotfinddriver”我安装了postgres9.6。我为postgresql启用了php扩展:3.我将postgres库添加到环境路径变量我用php测试了pdopostgres连接,我正在连接:$dbh=newPDO("pgsql:dbname=rotocms;host=127.0.0.1","postgres","mypassword");if($dbh){echo"connected";}el