简体   繁体   English

Ubuntu 10.04上PHP 5.3.2中的mysqlnd驱动程序

[英]mysqlnd driver in PHP 5.3.2 on Ubuntu 10.04

I'm trying to get the mysqlnd driver setup on php5.3.2 (default version) on Ubuntu 10.04 (Lucid). 我正在尝试在Ubuntu 10.04(Lucid)上的php5.3.2(默认版本)上获取mysqlnd驱动程序设置。 The PHP docs say that mysqlnd is compiled by default in the 5.3 builds. PHP文档说mysqlnd在5.3版本中默认编译。 But I haven't been able to find a way to make it part of the aptitude build. 但是我还没有找到一种使它成为能力建设的一部分的方法。

add this line to sources in the package manager 将此行添加到包管理器中的源

deb http://security.ubuntu.com/ubuntu precise-security main universe

Then install package php5-mysqlnd 然后安装软件包php5-mysqlnd

NOTE: If you are running Zend Server/CE, this is potentially dangerous as installation will remove several zend server packages, experiment with this as your own risk. 注意:如果您运行的是Zend Server / CE,则潜在的危险,因为安装过程将删除多个zend服务器软件包,尝试此方法风险自负。

尝试:

sudo apt-get install php5-mysqlnd

按照 php5-mysqlnd安装php5-mysqlnd和phpmyadmin

Actually, the docs say it's enabled by default on the Windows versions, and on Unix PHP uses the older MySQL Client Library instead ( as documented here ). 实际上,文档说它在Windows版本上是默认启用的,而在Unix上,PHP使用的是旧版的MySQL客户端库( 如此处所述 )。 But that's no guarantee that Ubuntu enabled it in their default build. 但这不能保证Ubuntu在其默认版本中启用了它。 As far as I can, it's nowhere to be found in Ubuntu/Lucid. 据我所知,在Ubuntu / Lucid中找不到它。 There's no package for it on the repositories, and php -i and phpinfo() both do not list it as a built-in module on my Lucid x64 Server install. 存储库中没有用于它的软件包,并且php -iphpinfo()都没有将其列为Lucid x64 Server安装中的内置模块。

Most likely you'll have to get Ubuntu's source .deb for MySQL and roll your own compile with mysqlnd activated. 最有可能的是,您必须获得Ubuntu的MySQL源.deb,并在激活mysqlnd的情况下滚动自己的编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM