无法连接到mysql数据库 [英] Unable to connect to mysql database
本文介绍了无法连接到mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨。
我刚开始学习PHP和MySQL。
我正在尝试连接到MySQL数据库服务器但无法连接。我一直在努力。请帮忙。我很快就要开始使用PHP了。
我的测试程序如下:
Hi.
I have just started learning PHP along with MySQL.
I am trying to connect to the MySQL DB server but unable to. I have been tryin. Please help. Its urgent cos I shall soon have to work on PHP .
My testing program is as follows :
展开 | 选择 | Wrap | 行号
推荐答案
[PHP] function_exists(''mysqli_connect'');
[/ PHP]
mysqli_connect 不是正确的功能
mysql_connect 是功能
删除i从功能名称
[PHP]function_exists(''mysqli_connect'');
[/PHP]
mysqli_connect is not the correct function
mysql_connect is the function
remove "i" from the function name
下次发布时请阅读发布指南。
请为您的主题提供正确的标题并使用标签包装编码。因为那么从这个页面本身我们就可以阅读编码而无需使用IDE。
When you post next time please read the posting guidelines.
Please give a proper title to your thread and wrap the coding using tags. because then from this page itself we can read the codings without going for a IDE.
是的。好的,我下次会遵守规则。
但是现在,我还是无法连接。请参阅以下声明。
Yes. Ok I ll Follow the rules from the next time.
But For now, I still am not able to connect. Please see the following statement.
这篇关于无法连接到mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文