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.
-
Questions that have answers involving how to update apt are better asked on serverfault. This is problem with setting up a web stack, not with programming on one. – Anthony Mar 17 '14 at 12:18
4 Answers
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.

- 22,600
- 28
- 79
- 90

- 41
- 2
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.

- 356,200
- 43
- 426
- 500