I use this code:
<?php
$link = mysql_connect('开发者_Python百科nibiru.zarea.net/sqladmin', 'czoctopus','*******');
if (!$link) {
die('<h1>Mysql error: ' . mysql_error() . '</h1>');
}
?>
this is echo:
Mysql error: php_network_getaddresses: getaddrinfo failed: Name or service not known
This
example.com/sqladmin
is not a valid server address. You probably need to use the domain only (or ask your provider for the address of the database server).
精彩评论