TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[28000] [1045] Access denied for user 'ngorz_smile'@'localhost' (using password: YES)

Source File

/home/ngorz/public_html/smile/framework/Data/TDbConnection.php (192)

0181:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0182:                                     $this->getPassword(),$this->_attributes);
0183:                 // This attribute is only useful for PDO::MySql driver.
0184:                 // Ignore the warning if a driver doesn't understand this.
0185:                 @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0186:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0187:                 $this->_active=true;
0188:                 $this->setConnectionCharset();
0189:             }
0190:             catch(PDOException $e)
0191:             {
0192: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0193: } 0194: } 0195: } 0196: 0197: /** 0198: * Closes the currently active DB connection. 0199: * It does nothing if the connection is already closed. 0200: */ 0201: protected function close() 0202: { 0203: $this->_pdo=null; 0204: $this->_active=false;

Stack Trace

#0 /home/ngorz/public_html/smile/framework/Data/TDbConnection.php(165): TDbConnection->open()
#1 /home/ngorz/public_html/smile/framework/TComponent.php(135): TDbConnection->setActive('true')
#2 /home/ngorz/public_html/smile/framework/TComponent.php(221): TComponent->__set('Active', 'true')
#3 /home/ngorz/public_html/smile/framework/Data/TDataSourceConfig.php(65): TComponent->setSubProperty('Active', 'true')
#4 /home/ngorz/public_html/smile/engine/Kernel/DefaultDataSource.php(45): TDataSourceConfig->init(Object(TXmlElement))
#5 /home/ngorz/public_html/smile/framework/TApplication.php(909): DefaultDataSource->init(Object(TXmlElement))
#6 /home/ngorz/public_html/smile/framework/TApplication.php(956): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#7 /home/ngorz/public_html/smile/framework/TApplication.php(370): TApplication->initApplication()
#8 /home/ngorz/public_html/smile/index.php(29): TApplication->run()
#9 {main}
2017-07-27 11:39 Apache PRADO/3.1.7