我该如何解决此“警告:mysqli_connect():(HY000/1049):未知数据库"问题? [英] How can i solve this "Warning: mysqli_connect(): (HY000/1049): Unknown database" problem?
问题描述
我下载了事件管理软件并安装了wamp服务器.一切都很好,但是当我尝试登录该网站时,它向我显示了此
I downloaded an Event management software and install wamp server.Everything is fine but when i try to sign up into the website ,it is showing me this
(!)警告:mysqli_connect():(HY000/1049):未知数据库 第2行的C:\ wamp64 \ www \ Emsp \ connection.php中的"eventmanagmnt"
( ! ) Warning: mysqli_connect(): (HY000/1049): Unknown database 'eventmanagmnt' in C:\wamp64\www\Emsp\connection.php on line 2
Call Stack
# Time Memory Function Location
1 0.0507 403176 {main}( ) ...\Login.php:0
2 0.1265 404264 include( 'C:\wamp64\www\Emsp\connection.php' ) ...\Login.php:2
3 0.1266 404264 mysqli_connect ( ) ...\connection.php:2
推荐答案
如何解决此问题?警告:mysqli_connect():(HY000/1049):未知 数据库"问题?
How can I solve this "Warning: mysqli_connect(): (HY000/1049): Unknown database" problem?
如果非常确定已创建数据库,则转到连接文件,然后将端口(3308)添加到主机变量[private $host = "localhost:3308";
].
对我有用.
If you are very sure you have created the database, then go to your connect file and add the port (3308) to your host variable [private $host = "localhost:3308";
].
It's worked for me.
这篇关于我该如何解决此“警告:mysqli_connect():(HY000/1049):未知数据库"问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!