试图连接到DB [英] trying to connect to DB

查看:91
本文介绍了试图连接到DB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用以下代码连接到数据库:

i''ve been trying to connect to a db using this code:

展开 | 选择 | Wrap | 行号

推荐答案

你检查了apache错误日志吗?


这可能是由于你的shebang线。尝试将其更改为:
Did you check the apache error log?

It''s probably due to your shebang line. Try changing it to this:
展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


不幸的是,我对xampp没有任何经验,所以我不是意识到警告。


我想我的第一个问题是,你能从命令行手动连接到数据库吗?如果没有,它会告诉你什么?


问候,


杰夫
Unfortunately, I don''t have any experience with xampp, so I am not aware of the caveats.

I guess my first question is, can you connect to the database manually from the command line? If not, what does it tell you?

Regards,

Jeff


我刚注意到你在connect语句的错误处理部分有一个语法错误。
I just noticed that you have a syntax error in the error handling portion of the connect statement.
展开 | 选择 | Wrap | 行号


这篇关于试图连接到DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆