Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Can't connect to local MySQL server through socket '/tmp/mysql.sock'*

Hi guys,

Wondering why I am getting this fatal error: Gdn_Database.Connection(); I was not doing any configurations in the back end, the web hosting that I am using see no problems so how do I fix? Is there a patch or something? Says It cannot connect... all the settings are correct and I've logged into phpmyadmin repaired the tables and optimized them and restarted the database process. Please help!

The site is: www.minecraft.net.au/index.php

**The Full error: (Won't hold format, web link above) **

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 '/tmp/mysql.sock' (2)
The error occurred on or near: /f5/minecraft-net-au/public/library/database/class.database.php
56:             $this->_Connection = new PDO(strtolower($this->Engine) . ':' . $this->Dsn, $this->User, $this->Password, $this->ConnectionOptions);
57:             if($this->ConnectionOptions[1002])
58:                $this->Query($this->ConnectionOptions[1002]);
59:          } catch (Exception $ex) {
60:             trigger_error(ErrorMessage('An error occurred while attempting to connect to the database', $this->ClassName, 'Connection', $ex->getMessage()), E_USER_ERROR);
61:          }
62:       }
63:       
64:       return $this->_Connection;
Backtrace:
/f5/minecraft-net-au/public/library/database/class.database.phpPHP::Gdn_ErrorHandler();
[/f5/minecraft-net-au/public/library/database/class.database.php:60] PHP::trigger_error();
[/f5/minecraft-net-au/public/library/database/class.database.php:232] Gdn_Database->Connection();
[/f5/minecraft-net-au/public/library/database/class.sqldriver.php:1584] Gdn_Database->Query();
[/f5/minecraft-net-au/public/library/database/class.sqldriver.php:639] Gdn_SQLDriver->Query();
[/f5/minecraft-net-au/public/applications/dashboard/models/class.permissionmodel.php:362] Gdn_SQLDriver->Get();
[/f5/minecraft-net-au/public/applications/dashboard/models/class.permissionmodel.php:117] PermissionModel->PermissionColumns();
[/f5/minecraft-net-au/public/applications/dashboard/models/class.usermodel.php:80] PermissionModel->CachePermissions();
[/f5/minecraft-net-au/public/library/core/class.session.php:291] UserModel->DefinePermissions();
[/f5/minecraft-net-au/public/library/core/class.auth.php:27] Gdn_Session->Start();
[/f5/minecraft-net-au/public/bootstrap.php:170] Gdn_Auth->StartAuthenticator();
[/f5/minecraft-net-au/public/index.php:28] 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.16
PHP Version: 5.2.17-nfsn2
Operating System: FreeBSD
Server Software: Apache/2.2
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
Request Uri: /index.php
Controller: Gdn_Database
Method: Connection

Comments

Sign In or Register to comment.