Forums / Install & configuration / No Database Handlers

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.