且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

试图连接到DB

更新时间:2023-11-18 17:04:04

你检查了apache错误日志吗?


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

It''s probably due to your shebang line. Try changing it to this:
展开 | 选择 | Wrap | 行号


不幸的是,我对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 | 行号