epExceptionDbPdo

Description

Cannot connect db [mysql:dbname=v108_reusit;host=galera-cluster.cloud.bnb.ovh]: SQLSTATE[HY000] [2002] Connexion refusée

Source File

/var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/db/epDbPdo.php (86)

0075:         // convert PEAR DSN into PDO DSN
0076:         $dsn_pdo = $this->_convertDsn($this->dsn, $username, $password, $phptype);
0077: 
0078:         // set db type
0079:         $this->_setDbType($phptype);
0080: 
0081:         // connect db now
0082:         try {
0083:             $this->db = new PDO($dsn_pdo, $username, $password);
0084:         } 
0085:         catch (Exception $e) {
0086: throw new epExceptionDbPdo('Cannot connect db [' . $dsn_pdo . ']: ' . $e->getMessage());
0087: return false; 0088: } 0089: 0090: // double check if we have db connectcion 0091: if (!$this->db) { 0092: throw new epExceptionDbPdo('Cannot connect db [' . $dsn . ']'); 0093: return false; 0094: } 0095: 0096: // set column name case to upper 0097: $this->db->setAttribute(PDO::ATTR_CASE, PDO::CASE_UPPER); 0098:

Stack Trace

#0 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/db/epDbPdo.php(126): epDbPdo->open()
#1 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/db/epDbObject.php(1568): epDbPdo->tableExists('configurations')
#2 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/db/epDbObject.php(1292): epDbObject->_tableExists('configurations')
#3 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/runtime/epManager.php(1614): epDbObject->create(Object(epClassMap))
#4 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/runtime/epManager.php(1564): epManagerBase->_getDb(Object(epClassMap))
#5 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/query/epQueryPath.php(632): epManagerBase->getDb(Object(epClassMap))
#6 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/query/epQueryPath.php(1214): epQueryPathRoot->__construct('Configuration', NULL, 0, Object(epQueryAliasManager))
#7 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/query/epQueryBuilder.php(394): epQueryPathManager->addPrimaryRoot('Configuration', NULL)
#8 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/query/epQueryBuilder.php(314): epQueryBuilder->processFrom()
#9 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/query/epQueryBuilder.php(287): epQueryBuilder->preproc()
#10 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/runtime/epQuery.php(225): epQueryBuilder->build()
#11 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/runtime/epManager.php(521): epQuery->parse('FROM Configurat...', Array)
#12 [internal function]: epManagerBase->query('FROM Configurat...')
#13 /var/www/vhosts/reusit.re/httpdocs/framework/ezpdo/src/runtime/epManager.php(593): call_user_func_array(Array, Array)
#14 /var/www/vhosts/reusit.re/httpdocs/protected/Business/EZPDOManager.php(78): epManagerBase->find('FROM Configurat...')
#15 /var/www/vhosts/reusit.re/httpdocs/protected/Business/EZPDOManager.php(63): EZPDOManager->findAllByCriteria('actif=1 LIMIT 1')
#16 /var/www/vhosts/reusit.re/httpdocs/protected/Modules/ConfigurationManager.php(39): EZPDOManager->findOneByCriteria('actif=1')
#17 /var/www/vhosts/reusit.re/httpdocs/framework/prado-3.1.7/framework/TApplication.php(909): ConfigurationManager->init(Object(TXmlElement))
#18 /var/www/vhosts/reusit.re/httpdocs/framework/prado-3.1.7/framework/TApplication.php(956): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#19 /var/www/vhosts/reusit.re/httpdocs/framework/prado-3.1.7/framework/TApplication.php(370): TApplication->initApplication()
#20 /var/www/vhosts/reusit.re/httpdocs/index.php(21): TApplication->run()
#21 {main}
2018-01-20 09:23 Apache PRADO/3.1.7