开发者

I can't connect to mysql5 in PHP5

开发者 https://www.devze.com 2023-02-10 01:13 出处:网络
I use this code: <?php $link = mysql_connect(\'开发者_Python百科nibiru.zarea.net/sqladmin\', \'czoctopus\',\'*******\');

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

精彩评论

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