MySQL5& PHP5 [英] MySQL5 & PHP5

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

问题描述

虽然我安装了MySQL5和PHP5,但我的phpinfo()如何显示如下:


启用MySQL支持

活动持久链接0
有效链接0

客户端API版本3.23.57<<<<<<<<<<<<<<< <


而不是说3.23.57,它不应该显示5.xx.xx吗?或者,我做了什么

出错了什么?


谢谢

解决方案

你需要在phpinfo()中查看''configure命令'并使用它来重新编译php。

你必须安装mysql开发头文件并重新编译Php

使用--with-mysql配置选项。


目前您的PHP版本编译时支持mysql3.23

Sarah Tanembaum写道:

虽然我安装了MySQL5和PHP5,但我的phpinfo()如何显示如下:

启用MySQL支持
Active Persistent链接0
有效链接0
客户端API版本3.23.57<<<<<<<<<<<<<<<<< br />
不是说3.23.57,不应该显示5.xx.xx吗?或者,我做错了什么?

谢谢



Peter写道:

您需要查看phpinfo()中的''configure命令'并使用它来重新编译php。
您必须安装mysql开发头文件并重新编译Php
--with-mysql配置选项。

目前您的PHP版本编译时支持mysql3.23

Sarah Tanembaum写道:

虽然我安装了MySQL5和PHP5,我的phpinfo()如何显示为
如下:

支持MySQL支持
活动持久链接0
有效链接0
客户端API版本3.23.57<<<<<<<<<<<<<<<<<

而不是说3.23.57,不应该显示5.xx.xx?或者,我做错了什么?

谢谢




他们有没有编译的原因他们使用最新版本?

即使是测试版发布?


我从PHP中央存储库获取了二进制文件,还有其他的吗? $ b可靠的地方我可以为mswin32下载二进制文件吗?


PS:我在Windows上运行。


谢谢


>>>而不是说3.23.57,不应该显示5.xx.xx?或者,我做了

有什么不对吗?

谢谢



有没有理由不用最新版本编译它们?
即使是测试版发布?




广泛可用的二进制文件,它们针对最低的常见值进行编译

分母:MySQL 3.x.

由部署人员为特定版本重新编译它。还有MySQL

5.x甚至没有接近稳定,而MySQL 4.1稳定最近才出现



Tristan


Though I installed MySQL5 and PHP5, how come my phpinfo() shows as follow:

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.57 <<<<<<<<<<<<<<<

Instead of saying 3.23.57, shouldn''t it show 5.xx.xx? Or, did I do
something wrong?

Thanks

解决方案

You need to look at the ''configure command'' in phpinfo() and use it to
recompile php.
You have to install the mysql development header files and recompile Php
with the --with-mysql configure option.

At the moment your version of PHP is compiled with support for mysql3.23
Sarah Tanembaum wrote:

Though I installed MySQL5 and PHP5, how come my phpinfo() shows as follow:

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.57 <<<<<<<<<<<<<<<

Instead of saying 3.23.57, shouldn''t it show 5.xx.xx? Or, did I do
something wrong?

Thanks



Peter wrote:

You need to look at the ''configure command'' in phpinfo() and use it to
recompile php.
You have to install the mysql development header files and recompile Php
with the --with-mysql configure option.

At the moment your version of PHP is compiled with support for mysql3.23
Sarah Tanembaum wrote:

Though I installed MySQL5 and PHP5, how come my phpinfo() shows as
follow:

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.57 <<<<<<<<<<<<<<<

Instead of saying 3.23.57, shouldn''t it show 5.xx.xx? Or, did I do
something wrong?

Thanks



Is there a reason why they do not compile them with the latest release?
Even for beta release?

I got the binary from PHP central repository, is there any other
reliable place I can download binaries for mswin32?

PS: I''m running on windows.

Thanks


>>> Instead of saying 3.23.57, shouldn''t it show 5.xx.xx? Or, did I do

something wrong?

Thanks



Is there a reason why they do not compile them with the latest release?
Even for beta release?



For the widely available binaries they compile against the lowest common
denominator: MySQL 3.x.
It is up to deployers to recompile it for a specific version. Also MySQL
5.x is not even close to stable, and MySQL 4.1 stable has only recently
appeared.
Tristan


这篇关于MySQL5&amp; PHP5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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