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.
try:
sudo apt-get install php5-mysqlnd
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.
Follow this blogpost to install both php5-mysqlnd
and phpmyadmin
精彩评论