运行phpinfo.PHP时没有mysql ??? [英] No mysql when running phpinfo.PHP???

查看:66
本文介绍了运行phpinfo.PHP时没有mysql ???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我是新手,刚刚开始使用留言簿

教程我在运行PHP代码时收到错误消息:


致命错误:调用C中的未定义函数mysql_connect():\ Program

Files\Apache Group\Apache2\htdocs\add第6行的.php


所以我在网上搜了几个小时尝试的东西都无济于事。我认为

需要从目录复制/粘贴到另一个目录或

需要在php.INI中启用某些东西。但是什么?


当我运行localhost / phpinfo.PHP时,没有提到Mysql,我知道

它应该在那里。


我正在运行Windows XP pro / Apache服务器/ PHP 5 / Mysql。

Mysql在提示符下工作正常,我创建,删除表和数据库

随意。


还有一点我在C:\ WINDOWS \ SYSTEM332中有libMySQL.dll。


我希望有人可以帮助我


非常感谢


Patrick

Hi

I am a newbie and was just getting started working on a guestbook
tutorial when I got an error message upon running my PHP code:

Fatal error: Call to undefined function mysql_connect() in C:\Program
Files\Apache Group\Apache2\htdocs\add.php on line 6

So I searched the web for hours trying stuff to no avail. I think
something needs to be copied/pasted from a directory to another or
something needs to be enabled in php.INI. But what?

When I run localhost/phpinfo.PHP there is no mention of Mysql, I know
it should be in there.

I am running Windows XP pro/Apache server/PHP 5/Mysql.
Mysql works fine at the prompt, I create, delete tables and databases
at will.

One more point I do have the libMySQL.dll in C:\WINDOWS\SYSTEM32.

I hope someone can help me

Thanks a lot

Patrick

推荐答案

你必须在你的php.ini文件中启用mysql扩展。找出

条目,上面写着''; extension = php_mysqli.dll''并删除领先的

分号。


-

Tony Marston

http: //www.tonymarston.net


" Patrick" < VA ****** @ netzero.net>在留言中写道

新闻:a3 ************************** @ posting.google.c om ...
You have to enable the mysql extension in your php.ini file. Seek out the
entry which says '';extension=php_mysqli.dll'' and remove the leading
semi-colon.

--
Tony Marston

http://www.tonymarston.net

"Patrick" <va******@netzero.net> wrote in message
news:a3**************************@posting.google.c om...


当我在运行我的PHP代码时收到错误消息时,我刚开始使用留言簿
教程:

致命错误:在C:\程序中调用未定义的函数mysql_connect()
第6行的文件\Apache Group \ ApachePat \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\所以我在网上搜了几个小时尝试的东西无济于事。我认为需要将某些内容从目录复制/粘贴到另一个目录或者需要在php.INI中启用某些内容。但是什么?

当我运行localhost / phpinfo.PHP时,没有提到Mysql,我知道
它应该在那里。

我在运行Windows XP专业版/ Apache服务器/ PHP 5 / Mysql。
Mysql在提示符下工作正常,我随意创建,删除表格和数据库。

我还有一点要点C:\ WINDOWS \ SYSTEM32中的libMySQL.dll。

我希望有人可以帮助我

非常感谢

Patrick
Hi

I am a newbie and was just getting started working on a guestbook
tutorial when I got an error message upon running my PHP code:

Fatal error: Call to undefined function mysql_connect() in C:\Program
Files\Apache Group\Apache2\htdocs\add.php on line 6

So I searched the web for hours trying stuff to no avail. I think
something needs to be copied/pasted from a directory to another or
something needs to be enabled in php.INI. But what?

When I run localhost/phpinfo.PHP there is no mention of Mysql, I know
it should be in there.

I am running Windows XP pro/Apache server/PHP 5/Mysql.
Mysql works fine at the prompt, I create, delete tables and databases
at will.

One more point I do have the libMySQL.dll in C:\WINDOWS\SYSTEM32.

I hope someone can help me

Thanks a lot

Patrick



PHP5使用MYSQL时出现了一些问题。关于PHP5,我仍然有相同的问题。首先尝试PHP4。

我试过PHP4,它运行稳定。

there looks has some problems for PHP5 work with MYSQL. I still have
the same problem about the PHP5. try PHP4 first.
I tried PHP4, and it working stable.


我正在使用PHP 5.0.2和MySQL 4.1 .7和Windows XP PC上的Apache 2.0.52

没有任何问题。 MySQL客户端显示为4.1.3-beta。


-

Tony Marston

http://www.tonymarston.net


< ze ** ****@gmail.com>在消息中写道

news:11 ********************** @ z14g2000cwz.googlegr oups.com ...
I am using PHP 5.0.2 with MySQL 4.1.7 and Apache 2.0.52 on a Windows XP PC
without any problem. The MySQL client shows up as 4.1.3-beta.

--
Tony Marston

http://www.tonymarston.net

<ze******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
PHP5使用MYSQL时遇到了一些问题。关于PHP5我还有同样的问题。先试试PHP4。
我试过PHP4,它运行稳定。
there looks has some problems for PHP5 work with MYSQL. I still have
the same problem about the PHP5. try PHP4 first.
I tried PHP4, and it working stable.



这篇关于运行phpinfo.PHP时没有mysql ???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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