mysqli_connect无法正常工作 [英] The mysqli_connect not working
问题描述
我安装了apache,php和mysql.现在,当我执行php代码时,mysqli_connect()
不起作用,也没有在消亡中显示消息.
I installed apache, php and mysql. Now when I execute the php code, the mysqli_connect()
is not working, neither it's showing the message in die.
$dbc=mysqli_connect(' ', ' ', ' ', ' ') or die('not connecting');
现在有人告诉我应该将什么数据库用户名传递给mysqli_connect
以及什么密码.我不记得有人要求我输入用户名或密码
为什么die()
中的消息没有显示?
Now someone tell me what database username shall I pass to mysqli_connect
and what password. I don't remember I was asked for any username or password
and why isn't the message in die()
showing up?
我的var_dump(function_exists('mysqli_connect'));
输出bool(false)..如果与它有任何关系,我该如何纠正.
My var_dump(function_exists('mysqli_connect'));
outputs bool(false).. if it has anything to do with it, how do I correct it.?
推荐答案
好像没有安装MySQLi扩展. var_dump(function_exists('mysqli_connect'));
输出什么?
Looks like MySQLi extension is not installed. What does var_dump(function_exists('mysqli_connect'));
output?
这篇关于mysqli_connect无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!