This is a
total balls up...... Very few of the links in the document work.
Fatal Error in Gdn_Database.Connection();
An error occurred while attempting to connect to the database
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
The error occurred on or near: /var/www/vanilla/public_html/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:
/var/www/vanilla/public_html/library/database/class.database.phpPHP::Gdn_ErrorHandler();
[/var/www/vanilla/public_html/library/database/class.database.php:61] PHP::trigger_error();
[/var/www/vanilla/public_html/library/database/class.database.php:283] Gdn_Database->Connection();
[/var/www/vanilla/public_html/library/database/class.sqldriver.php:1657] Gdn_Database->Query();
[/var/www/vanilla/public_html/library/database/class.sqldriver.php:683] Gdn_SQLDriver->Query();
[/var/www/vanilla/public_html/applications/dashboard/models/class.permissionmodel.php:476] Gdn_SQLDriver->Get();
[/var/www/vanilla/public_html/applications/dashboard/models/class.permissionmodel.php:188] PermissionModel->PermissionColumns();
[/var/www/vanilla/public_html/applications/dashboard/models/class.usermodel.php:254] PermissionModel->CachePermissions();
[/var/www/vanilla/public_html/library/core/class.session.php:318] UserModel->DefinePermissions();
[/var/www/vanilla/public_html/library/core/class.auth.php:36] Gdn_Session->Start();
[/var/www/vanilla/public_html/bootstrap.php:168] Gdn_Auth->StartAuthenticator();
[/var/www/vanilla/public_html/index.php:41] PHP::require_once();
Variables in local scope:
[ex] array (
'errorInfo' => NULL,
)
Need Help?
If you are a user of this website, you can report this message to a website administrator.
If you are an administrator of this website, you can get help at the Vanilla Community Forums.
Additional information for support personnel:
Application: Vanilla
Application Version: 2.0.18.9
PHP Version: 5.3.10-1ubuntu3.8
Operating System: Linux
Server Software: Apache/2.2.22 (Ubuntu)
Referer:
http://www.google.com/url?q=http%3A%2F%2Fquarktalk.com%2Findex.php%3Fp%3D%2Fdiscussion%2Fcomment%2F492%23Comment_492&sa=D&sntz=1&usg=AFQjCNFva5HMUJeaXen6vwRyjcSx0_7DBQ User Agent: Mozilla/5.0 (Windows NT 5.2; rv:26.0) Gecko/20100101 Firefox/26.0
Request Uri: /index.php?p=/discussion/comment/492
Controller: Gdn_Database
Method: Connection