MySQL Forums
Forum List  »  NDB clusters

log4php, failed connecting to database (mysql-cluster database)
Posted by: Zhihong He
Date: October 16, 2013 08:30AM

Hi, all,
Recently, I had an error when using log4php in my mysql-cluster database, the error is like:
PHP Warning: log4php: [LoggerAppenderPDO:default]: Failed connecting to database. Closing appender. Error: could not find driver in ..log4php/LoggerAppender.php on line 283

For my other normal mysql server, it has no such problem. And I am not really sure this is because of mysql-cluster.
And as someone suggested that this may related to PDO MYSQL driver, I am wondering how to install it for mysql-cluster-5.5.29-ndb-7.2.10 database? Because when I try to re-install it using: sudo apt-get install php5-mysql, it can not be successfully installed. I got errors as follows (as the default version mention is mysql server 5.1, which is not my mysql-cluster version):
-----------
Preparing to replace php5-common 5.3.6-13ubuntu3.9 (using .../php5-common_5.3.6-13ubuntu3.10_amd64.deb) ...
Unpacking replacement php5-common ...
Processing triggers for man-db ...
Setting up mysql-server-5.1 (5.1.63-0ubuntu0.11.10.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.1; however:
Package mysql-server-5.1 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Setting up php5-common (5.3.6-13ubuntu3.10) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up php5-cli (5.3.6-13ubuntu3.10) ...
Setting up libapache2-mod-php5 (5.3.6-13ubuntu3.10) ...
* Reloading web server config apache2 [ OK ]
Setting up php5-mysql (5.3.6-13ubuntu3.10) ...
Setting up php5-curl (5.3.6-13ubuntu3.10) ...
Errors were encountered while processing:
mysql-server-5.1
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
--------------------

Dose anyone have clue about this?

Thanks



Edited 1 time(s). Last edit at 10/16/2013 08:31AM by Zhihong He.

Options: ReplyQuote


Subject
Views
Written By
Posted
log4php, failed connecting to database (mysql-cluster database)
2201
October 16, 2013 08:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.