[英]Connection failed: No such file or directory
I am working on a payroll system.我正在研究薪资系统。 Everything is working fine on localhost (xampp) but when I upload it to ionos hosting, it is loading the admin login page fine but when i enter the username & password it is giving "Connection failed: No such file or directory".
在本地主机(xampp)上一切正常,但是当我将它上传到 ionos 托管时,它正在加载管理员登录页面,但是当我输入用户名和密码时,它给出了“连接失败:没有这样的文件或目录”。
DB name: dbs4868780数据库名称:dbs4868780
and here is the code:这是代码:
<?php
$conn = new mysqli('localhost', 'root', '', 'xxxxxxxxx');
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.