dbeckerton Posted June 27, 2010 Share Posted June 27, 2010 i have a problem and i just crnt figure it out Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in/home/freehost/t35.com/f/a/fallenworld/mysql.php on line 46 FATAL ERROR: Could not connect to database on localhost (Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)) here is line 46 $this->connection_id=mysql_connect($this->host, $this->user, $this->pass, 1) or $this->connection_error(); Quote Link to comment Share on other sites More sharing options...
DigitalGerm Posted June 27, 2010 Share Posted June 27, 2010 verify the host/port user name and password. and address this issue to hosting staff. try again without the flag "1". And maybe the host doesn't respond to "localhost" probably something like mysql2.freehost.com etc... Quote Link to comment Share on other sites More sharing options...
dbeckerton Posted August 17, 2010 Author Share Posted August 17, 2010 thnx dude been a big help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.