Bonk. I move my site to a new vps,then this happened. Another wordpress site works well.
Fatal Error in Gdn_Database.Connection();
An error occurred while attempting to connect to the database
could not find driver
The error occurred on or near: /home/wwwroot/pg/library/database/class.database.php
57: $this->_Connection = new PDO(strtolower($this->Engine) . ':' . $this->Dsn, $this->User, $this->Password, $this->ConnectionOptions);
58: if($this->ConnectionOptions[1002])
59: $this->Query($this->ConnectionOptions[1002]);
60: } catch (Exception $ex) {
61: trigger_error(ErrorMessage('An error occurred while attempting to connect to the database', $this->ClassName, 'Connection', $ex->getMessage()), E_USER_ERROR);
62: }
63: }
64:
65: return $this->_Connection;
Backtrace:
/home/wwwroot/pg/library/database/class.database.phpPHP::Gdn_ErrorHandler();
[/home/wwwroot/pg/library/database/class.database.php:61] PHP::trigger_error();
[/home/wwwroot/pg/library/database/class.database.php:283] Gdn_Database->Connection();
[/home/wwwroot/pg/library/database/class.sqldriver.php:1650] Gdn_Database->Query();
[/home/wwwroot/pg/library/database/class.sqldriver.php:676] Gdn_SQLDriver->Query();
[/home/wwwroot/pg/applications/dashboard/models/class.permissionmodel.php:476] Gdn_SQLDriver->Get();
[/home/wwwroot/pg/applications/dashboard/models/class.permissionmodel.php:188] PermissionModel->PermissionColumns();
[/home/wwwroot/pg/applications/dashboard/models/class.usermodel.php:234] PermissionModel->CachePermissions();
[/home/wwwroot/pg/library/core/class.session.php:318] UserModel->DefinePermissions();
[/home/wwwroot/pg/library/core/class.auth.php:36] Gdn_Session->Start();
[/home/wwwroot/pg/bootstrap.php:168] Gdn_Auth->StartAuthenticator();
[/home/wwwroot/pg/index.php:41] PHP::require_once();
Variables in local scope:
[ex] array (
'errorInfo' => NULL,
)
Comments
do you have pdo enabled?
did you move your database as well?
can you connect with phpmyadmin ?
are the passwords correct?
run phpinfo()
http://kb.mediatemple.net/questions/764/How+can+I+create+a+phpinfo.php+page?#gs
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.