开发者

I can't connect to mysql5 in PHP5

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).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜