Results 1 to 4 of 4
Thread: php problem with port number
June 24th, 2004, 02:58 PM #1
php problem with port numberCode:
$db_host = "*****"; // mySQL database host $db_user = "*****"; // mySQL database user $db_password = "*****"; // mySQL database password $db_name = "*****"; // the name of your mySQL database
Warning: mysql_connect(): Can't connect to MySQL server on 'www.freesql.org' (13) in /data/hosted/Paulstuff/shoutbox.php on line 70 Can't connect to MySQL server on 'www.freesql.org' (13)
(i want it to be port 3306 please)
thx in advance,
June 27th, 2004, 05:34 AM #2
$dbhost = "******:3306";
But since 3306 is the default port number for MySQL i don't think that's your problem. It'll use port 3306 if you don't specify it.
Are you sure username and password are correct?"Nationalism is an infantile disease. It is the measles of mankind." -- Albert Einstein
June 27th, 2004, 01:29 PM #3
yep im using a website so for the host do i put www.freesql.org
June 27th, 2004, 11:56 PM #4
I don't think there is anything wrong with the script itself... It probably is the freesql.org blocking the call... Do some search on that if it is true or not... If it is true, there's got to be some people who's posted the problem already... Google should be handy for that...
Better yet, find a cheap host that provided you MySQL database... It is really cheap these days to get a hosting which probably will run somewhere around 5-10 bucks for it...