Exception

Description

Unable to connect to database [Access denied for user 'root'@'localhost' (using password: YES)]

Source File

/var/www/clients/client2/web2/web/protected/lib/Database/MySQL.php (25)

0014:     */
0015:     private $paramConn;
0016:     /**
0017:     * digunakan untuk koneksi ke database
0018:     * @param param array (host,dbname,user,password)
0019:     * @return void
0020:     */
0021:     public function connectDB ($param) { 
0022:         $this->paramConn = $param;
0023:         $this->conn = new mysqli ($param['host'],$param['user'],$param['password'],$param['dbname']);        
0024:         if($this->conn->connect_errno > 0){
0025: throw new Exception('Unable to connect to database [' . $this->conn->connect_error . ']');
0026: } 0027: } 0028: /** 0029: * digunakan untuk mengeksekusi perintah sql 0030: * @param param sqlString 0031: * @return void 0032: */ 0033: public function query ($sqlString) { 0034: $this->sqlString=$sqlString; 0035: if ($result=$this->conn->query($sqlString)) { 0036: $this->ResultQuery=$result; 0037: return $result;

Stack Trace

#0 /var/www/clients/client2/web2/web/protected/lib/Database/DBFactory.php(77): MySQL->connectDB(Array)
#1 /var/www/clients/client2/web2/web/protected/lib/Database/DBFactory.php(46): DBFactory->linkOpen()
#2 /var/www/clients/client2/web2/web/framework_323/pradolite.php(10654): DBFactory->init(Object(TXmlElement))
#3 /var/www/clients/client2/web2/web/framework_323/pradolite.php(10712): TApplication->applyConfiguration(Object(TApplicationConfiguration), true)
#4 /var/www/clients/client2/web2/web/framework_323/pradolite.php(10689): TApplication->startService('page')
#5 /var/www/clients/client2/web2/web/framework_323/pradolite.php(10281): TApplication->initApplication()
#6 /var/www/clients/client2/web2/web/index.php(6): TApplication->run()
#7 {main}
2015-09-03 17:49 nginx/1.2.1 PRADO/3.2.3