简体   繁体   中英

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). The PHP docs say that mysqlnd is compiled by default in the 5.3 builds. 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

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.

尝试:

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 ). But that's no guarantee that Ubuntu enabled it in their default build. As far as I can, it's nowhere to be found in 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.

Most likely you'll have to get Ubuntu's source .deb for MySQL and roll your own compile with mysqlnd activated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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