• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Can't connect to MySQL on f2s.


New Member
I'm trying to build a PHPNuke powered site. I uploaded my files and tried to access admin.php in the browser and got this:

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /web/sites/85/cardsfan25/www.webnexus.f2s.com/mainfile.php on line 17
Unable to select database

What should I do?
It looks to me that you don't have the right adress for the server, it would probley be db.webnexus.f2s.com for you
Originally posted by braden
I have the right address for the server. I need to know where the mysql socket is.
What the hell is that? I got everything working just fine. Used it for phpBB.
hey guys i do also as said in tforum readme file.
database name=db.dony.f2s.com
but also received a problem
Put the connection on each page. Last time I put it in a function it didn't work. Also us the port.

This WON'T work :
$id = connect_to_db(); //my own function

This works :
$id = mysql_connect($dbhost.":".$dbport,$dbuser,$dbpwd);

Try it ...