i cant access to the localhost
Posted by: iozk (---.prod-infinitum.com.mx)
Date: October 14, 2010 06:20PM

i got a trouble connecting to the database

writting this

$host = "localhost";
$user = "root";
$pass = "passwd";
$dbase = "blogdb";

$con = mysql_connect($host, $user, $pass) or die (mysql_error());
mysql_select_db($dbase, $con);

and this is the error that i got

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Host desconocido. in C:\server\Lesson 1\admin\configure.php on line 12

Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: Host desconocido. (trying to connect via tcp://localhostroot:3306) in C:\server\Lesson 1\admin\configure.php on line 12

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Host desconocido. in C:\server\Lesson 1\admin\configure.php on line 12

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\server\Lesson 1\admin\configure.php on line 13

the error is the host and i try writting 127.0.0.1 nothing

i'm using windows 7 and like everyone i got troubles changing the host 127.0.0.1 to localhost

Options: ReplyQuote
Re: i cant access to the localhost
Posted by: yfastud (Moderator)
Date: October 14, 2010 06:20PM


Options: ReplyQuote
Re: i cant access to the localhost
Posted by: iozk (---.prod-infinitum.com.mx)
Date: October 14, 2010 08:09PM

i do that and nothing

Options: ReplyQuote
Re: i cant access to the localhost
Posted by: iozk (---.prod-infinitum.com.mx)
Date: October 14, 2010 08:57PM

hi a find some solution of this in

[blog.teliaz.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.