Database_Exception [ ] in MODPATH/database/classes/Kohana/Database/MySQL.php line 106

Broken code

101 	protected function _select_db($database)
102 	{
103 		if ( ! mysql_select_db($database, $this->_connection))
104 		{
105 			// Unable to select database
106 			throw new Database_Exception(':error',
107 				array(':error' => mysql_error($this->_connection)),
108 				mysql_errno($this->_connection));
109 		}
110 
111 		Database_MySQL::$_current_databases[$this->_connection_id] = $database;

Stack trace

  1. MODPATH/database/classes/Kohana/Database/MySQL.php [ 73 ] » Kohana_Database_MySQL->_select_db()

  2. MODPATH/database/classes/Kohana/Database/MySQL.php [ 169 ] » Kohana_Database_MySQL->connect()

  3. MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQL->query()

  4. APPPATH/classes/Model/Exchange/ExchangesList.php [ 18 ] » Kohana_Database_Query->execute()

  5. APPPATH/classes/Controller/Monitor.php [ 33 ] » Model_Exchange_ExchangesList->__construct()

  6. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Monitor->action_index()

  7. {PHP internal call} » Kohana_Controller->execute()

  8. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke()

  9. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()

  10. SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute()

  11. DOCROOT/index.php [ 119 ] » Kohana_Request->execute()