Connecting to Database

Author Message

Fraser Hore

Thursday 04 December 2003 7:23:31 am

I am unable to get past the connect to database screen in the setup wizard. Could someone please share some known solutions to this problem.

i.e. is there a default password i'm missing?

Cheers,

Fraser

Kåre Køhler Høvik

Thursday 04 December 2003 8:35:00 am

Hi

Are you using mysql or postgresql ?
What platform are you on (linux, ms, etc.) ?
Are you trying to install from the .tar.gz, or one of the complete installers ?
Which version are you trying (3.2-3 or 3.3b1) ?

--
Kåre Høvik

Kåre Høvik

Carilda Thomas

Thursday 04 December 2003 11:30:19 am

Hi, all.
I am still struggling with the install myself, but have discovered the following:

The following is for PostgreSQL: (I make some guesses about mysql further down.)

The default startup for postmaster is to only activate the Unix socket for local connections. It will not open its port unless you start it with the -i option.

If you have not started with the -i option but try to use the "host=xxx" name=value pair, the connection will fail because that implies a socket connection (even if the host is specified as localhost).

So, the quick fix is to restart your postmaster with a -i option.

For security reasons, you may not want to do this. The dirty fix in this case is to go down into the directory <ezpublish-root>/lib/ezdb/classes and edit (carefully) the ezpostgresqldb.php file. Find the instances of pg_pconnect and pg_connect (there are two of each, one initial, and one in a retry loop). Comment them out (with notations - I am obsessive) and replace the connect string with "dbname=<whatever>". This assumes you have trust set for local connections in your pg_hba.conf file. If you don't know what this means or don't have access, bear with me. If that doesn't work, you have some other setup and may have to use the string "dbname=<whatever> user=<some valid user> password=<password>".

The above is a serious kludge and should not propagate, but will do for a q-and-d setup. The setup wizard, the manual instructions, and the setup file (haven't chased this one down yet) should be modified to distinguish a port-enabled db from a socket-only db . This could be done by running some basic connection tests within the setup program in the manner that a build configure shell does to create Makefile options.

For mysql (and I'm just guessing here), you are probably having some trouble with your grants.

Carilda

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:21:48
Script start
Timing: Jan 18 2025 19:21:48
Module start 'layout'
Timing: Jan 18 2025 19:21:48
Module start 'content'
Timing: Jan 18 2025 19:21:49
Module end 'content'
Timing: Jan 18 2025 19:21:49
Script end

Main resources:

Total runtime1.0486 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 587.9141152.6250
Module start 'layout' 0.00880.0032 740.539139.4609
Module start 'content' 0.01201.0350 780.0000573.8828
Module end 'content' 1.04710.0015 1,353.882812.1719
Script end 1.0486  1,366.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3681160.0002
Check MTime0.00140.1319160.0001
Mysql Total
Database connection0.00080.074810.0008
Mysqli_queries0.991394.5328590.0168
Looping result0.00060.0540570.0000
Template Total1.009096.220.5045
Template load0.00210.197120.0010
Template processing1.006996.021120.5035
Template load and register function0.00010.009710.0001
states
state_id_array0.00190.183710.0019
state_identifier_array0.00140.133020.0007
Override
Cache load0.00170.1652280.0001
Sytem overhead
Fetch class attribute can translate value0.00100.092230.0003
Fetch class attribute name0.00160.148650.0003
XML
Image XML parsing0.00180.168230.0006
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00100.0960210.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs