Forums / Install & configuration / Problem working with Postgres

Problem working with Postgres

Author Message

Mazin Mustafa

Thursday 01 July 2004 8:50:39 am

I'm trying to perform a fresh install on eZ publish 3.4.0 and have it use Postgres. The setup dectects the presence of Postgres and allows me to select. At the screen where the host, user name, and password are entered, it fails with this message:

"Please make sure that the username and the password is correct. Verify that your PostgreSQL database is configured correctly."

I run a simple php test script:

$link = pg_connect("host=localhost dbname=ezpublish user=postgres password=password");
if (!$link) {
die("Could not connect: " .pg_last_error());
}
echo 'Connected successfully';

And it connects just fine.
Is there some Postgres parameter that ez Publish needs set ?

phpinfo returns the following on postgres

pgsql
PostgreSQL Support enabled
PostgreSQL(libpq) Version 7.3.4
Multibyte character support enabled
SSL support enabled
Active Persistent Links 0
Active Links 0

Directive Local Value Master Value
pgsql.allow_persistent On On
pgsql.auto_reset_persistent Off Off
pgsql.ignore_notice Off Off
pgsql.log_notice Off Off
pgsql.max_links Unlimited Unlimited
pgsql.max_persistent Unlimited Unlimited

Thanks

Vadym Savchuk

Thursday 01 July 2004 10:42:20 am

Yes, this is a known bug.
Please look at the following bugreport:
http://ez.no/community/bug_reports/database_connection_fails_with_installation_wizard

You can just wait until eZ Publish 3.4.1 is released (in a few days), which already includes the fix. Alternatively, upgrade to the latest 3.4 SVN revision.

Mazin Mustafa

Thursday 01 July 2004 12:24:20 pm

Thank you. I just tested the fix and it worked for me also.

eZ debug

Timing: Jan 18 2025 19:31:46
Script start
Timing: Jan 18 2025 19:31:46
Module start 'content'
Timing: Jan 18 2025 19:31:46
Module end 'content'
Timing: Jan 18 2025 19:31:47
Script end

Main resources:

Total runtime0.7003 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 587.8281180.8281
Module start 'content' 0.00880.5285 768.6563479.1172
Module end 'content' 0.53720.1630 1,247.7734333.7969
Script end 0.7003  1,581.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.6103210.0002
Check MTime0.00150.2206210.0001
Mysql Total
Database connection0.00080.121210.0008
Mysqli_queries0.627589.60171940.0032
Looping result0.00210.30241920.0000
Template Total0.667495.320.3337
Template load0.00220.308320.0011
Template processing0.665294.990520.3326
Template load and register function0.00020.030710.0002
states
state_id_array0.00180.250310.0018
state_identifier_array0.00130.183220.0006
Override
Cache load0.00190.2650360.0001
Sytem overhead
Fetch class attribute can translate value0.00120.166930.0004
Fetch class attribute name0.00100.140230.0003
XML
Image XML parsing0.00050.077430.0002
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00210.3049210.0001
String conversion0.00000.001330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs