i got this warning message:
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host '�localhost�' (11004) in C:\[loc]\default.php on line 16
code here:
<?php
$user=”root”;
$host='http://localhost';
$password=””;
$connection = mysql_connect($host,$user,$password); //line 16
?>
what's the problem here?
warning in connection..help..
Moderator: General Moderators
-
finch_emo44
- Forum Newbie
- Posts: 5
- Joined: Wed Jul 08, 2009 8:24 am
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: warning in connection..help..
Is MySQL running?
Normally, that error means that MySQL isn't running on the server. You need to turn it on in order to use it locally.
Normally, that error means that MySQL isn't running on the server. You need to turn it on in order to use it locally.
-
finch_emo44
- Forum Newbie
- Posts: 5
- Joined: Wed Jul 08, 2009 8:24 am
Re: warning in connection..help..
yup, i'm using mysql 5..
I also tried this: http://www.phplivesupport.com/documenta ... d=35&pid=1
mine said that it is succesful..
any suggestion?
I also tried this: http://www.phplivesupport.com/documenta ... d=35&pid=1
mine said that it is succesful..
any suggestion?