我不能安装joomla。在第二阶段“数据库”中,我将主机名写为"0.0.0.0",但DB无法连接到MySQL。我试图编写8080和localhost,但是结果是一样的。我能做什么?
发布于 2016-05-15 23:14:15
根据本源,0.0.0.0是正确的主机名,所以这可能不是问题的根源。
$servername = getenv('IP');$username = getenv('C9_USER');$password =“.”;$database =“.”;$dbport = 3306;//创建连接$db =新mysqli($servername、$username、$password、$database、$dbport);//检查连接if ($db->connect_error) {die(“连接失败:”)。$db->connect_error);} echo“已成功连接(”$db->host_info.“)”;
祝好运!
https://stackoverflow.com/questions/37228651
复制相似问题