No Database Handlers

Author Message

Peter Gogas

Wednesday 30 April 2003 4:17:12 pm

Hi,

I'm trying to install ez Publisher 3.0 release 2 on RedHat 7.1. I have php installed with MySQL support (I have phpMyAdmin working on the system).

Here is the database portion of setup.ini

[DatabaseSettings]
DatabasePluginPath=
# Use either ezmysql or ezpostgresql
DatabaseImplementation=ezmysql
Server=localhost
User=root
Password=*****
Database=ezpub
Password=******# Enable slave servers
# The slave servers will only be used for read queries
# Useful for load balanced environments
UseSlaveServer=disabled
#SlaveServerArray[]=localhost
#SlaverServerUser[]=nextgen
#SlaverServerPassword[]=nextgen
#SlaverServerDatabase[]=nextgen
# The number of times to reconnect if the first fails
ConnectRetries=0
Charset=iso-8859-1
# Use charset conversion routines in DB if possible
UseBuiltinEncoding=true
Socket=enabled
SQLOutput=disabled
UsePersistentConnection=disabled

The username and password are correct and I can use mysql from the command line.

When I go through the setup, I get the following error:

---

2. Missing database handlers

Your PHP does not have support for all databases that eZ publish support. Allthough eZ publish will work without it, it might be that you want to have support for this database. Also some databases has more advanced features, such as charset, than others.

To obtain more database support you need to recompile PHP, the exact recompile options are specified below.

---

Then when I try to connect to my database:

---

Initialize Database

No database connection

Could not connect to database.

Error #

The database would not accept the connection , please review your settings and try again.

---

Here is the debug output from that page:

---

Timing:
Apr 30 2003 19:16:49

Script start

Timing:
Apr 30 2003 19:16:49

Module start 'setup'

Warning: PHP
Apr 30 2003 19:16:49

Undefined index: in /home/netsniff/netsniff.com/html/kernel/setup/parts/init/ezstep_database_init.php on line 193

Error: eZDB::instance
Apr 30 2003 19:16:49

Database implementation not supported:

Error: eZTemplate @ setup/init/database_init.tpl:20[8]
Apr 30 2003 19:16:49

No such attribute for array(2): text
Choose one of following: text, number

Error: eZTemplate @ setup/init/database_init.tpl:21[8]
Apr 30 2003 19:16:49

No such attribute for array(7): info
Choose one of following: type, server, name, user, password, socket,
info

Error: eZTemplate @ setup/init/database_init.tpl:21[40]
Apr 30 2003 19:16:49

No such attribute for array(2): number
Choose one of following: text, number

Error: eZTemplate
Apr 30 2003 19:16:49

No such attribute for array(7): info
Choose one of following: type, server, name, user, password, socket,
info

Warning: eZTemplate
Apr 30 2003 19:16:49

No template could be loaded for "setup/db/_connection_error.tpl" using resource "design"

Error: eZTemplate
Apr 30 2003 19:16:49

No such attribute for array(7): info
Choose one of following: type, server, name, user, password, socket,
info

Error: eZTemplate @ setup/init/database_init.tpl:84[2]
Apr 30 2003 19:16:49

No such attribute for array(7): info
Choose one of following: type, server, name, user, password, socket,
info

Error: eZTemplate @ setup/init/database_init.tpl:90[2]
Apr 30 2003 19:16:49

No such attribute for array(7): info
Choose one of following: type, server, name, user, password, socket,
info

Error: eZTemplate @ setup/init/database_init.tpl:96[2]
Apr 30 2003 19:16:49

No such attribute for array(7): info
Choose one of following: type, server, name, user, password, socket,
info

Error: eZTemplate
Apr 30 2003 19:16:49

No such attribute for array(7): info
Choose one of following: type, server, name, user, password, socket,
info

Timing:
Apr 30 2003 19:16:49

End

Timing:
Apr 30 2003 19:16:49

Module end 'setup'

Timing:
Apr 30 2003 19:16:49

End

Gunnstein Lye

Friday 02 May 2003 5:42:48 am

(I assume you mean site.ini, not setup.ini.)

site.ini (or site.ini.pnp, or the relevant override file) should contain this line under [DatabaseSettings]:
DatabaseImplementation=ezmysql

as you say it does. However, this error message: "Database implementation not supported: " suggests that the the database is not specified. Maybe you have a site.ini override file where this entry is empty. I suggest you check your ini-files for this.

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 31 2025 01:18:18
Script start
Timing: Jan 31 2025 01:18:18
Module start 'layout'
Timing: Jan 31 2025 01:18:19
Module start 'content'
Timing: Jan 31 2025 01:18:19
Module end 'content'
Timing: Jan 31 2025 01:18:19
Script end

Main resources:

Total runtime0.0276 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.1328151.2109
Module start 'layout' 0.00660.0048 739.3438220.6875
Module start 'content' 0.01140.0148 960.03131,001.8047
Module end 'content' 0.02610.0014 1,961.835933.9922
Script end 0.0275  1,995.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.0557140.0002
Check MTime0.00113.9052140.0001
Mysql Total
Database connection0.00114.021110.0011
Mysqli_queries0.003713.351430.0012
Looping result0.00000.087310.0000
Template Total0.00103.610.0010
Template load0.00082.867710.0008
Template processing0.00020.725410.0002
Override
Cache load0.00062.009210.0006
General
dbfile0.00113.845680.0001
String conversion0.00000.037240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs