View Full Version : Can't connect to MySQL on f2s.
braden
March 29th, 2001, 20:26
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?
braden
March 30th, 2001, 18:35
Where is mysql.sock on f2s?
Gonzo
March 30th, 2001, 20:28
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
braden
March 30th, 2001, 20:48
I have the right address for the server. I need to know where the mysql socket is.
gyrbo
March 31st, 2001, 06:50
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.
Koolguy
March 31st, 2001, 15:38
Don't you mean the port?
braden
March 31st, 2001, 18:47
Are the port and the mysql socket the same thing?
braden
April 2nd, 2001, 21:56
So does anyone know anything about php on f2s?
dony
April 3rd, 2001, 10:05
hey guys i do also as said in tforum readme file.
database name=db.dony.f2s.com
but also received a problem
oodie
April 3rd, 2001, 19:23
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 :
<body>
<?
require("mylib.inc.php");
$id = connect_to_db(); //my own function
?>
This works :
<body>
<?
$id = mysql_connect($dbhost.":".$dbport,$dbuser,$dbpwd);
?>
Try it ...
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.