Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用这段代码:
<?php $link = mysql_connect('nibiru.zarea.net/sqladmin', 'czoctopus','*******'); if (!$link) { die('<h1>Mysql error: ' . mysql_error() . '</h1>'); } ?>
这是回声:
Mysql错误:php_network_getaddresses:getaddrinfo失败:名称或服务未知
这个
example.com/sqladmin
不是有效的服务器地址。您可能只需要使用域(或向您的提供商询问数据库服务器的地址)。