Warning: mysqli_connect(): (HY000/2002): No connection could be made because the target machine actively refused it. in E:\xampp\htdocs\ss\docs\regional.php on line 15
The connection to the database could not be established.
这是一个严重的错误还是很容易被忽略?错误消息'The connection to the database could not be established.'
是expected to pop
但是not the warning text
。在这种情况下如何删除它。下面是我使用的代码。
$db = mysqli_connect('localhost', 'root', '', 'regional_data');
if(mysqli_connect_errno()) {die('The connection to the database could not be established.');}
编辑:我已经在开发区域停止了 SQL 来测试这个并且当时出现了消息。