开发者

phpmyadmin host not found !

Hi im using xampp & I am trying to connect using php.

<?php $server = localhost; $username = root; $password = ******;?>

$sql_connections = mysql_connect("$server, $username, $password") or die(mysql_error());

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Host desconocido. in C:\xampp\htdocs\Database Manager\admin\sql_functions.php on line 17

Warning:开发者_开发问答 mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: Host desconocido. (trying to connect via tcp://localhost, root, usd27498:3306) in C:\xampp\htdocs\Database Manager\admin\sql_functions.php on line 17


You are using incorrect notation to set the server:

 mysql_connect("$server, $username, $password")

needs to be

 mysql_connect($server, $username, $password)

manual on mysql_connect


did you start your xampp control panel?

is your apache running? try http://localhost

is your mysql running?

try http://localhost/phpmyadmin/

depending the error you are getting is what you have to do. I am guessing that you might have a problem with the mysql password.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜