2

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.

Adam Gotterer
  • 598
  • 5
  • 19
  • 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 Answers4

4

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.

j0k
  • 22,600
  • 28
  • 79
  • 90
1

try:

sudo apt-get install php5-mysqlnd
Rizier123
  • 58,877
  • 16
  • 101
  • 156
0

Follow this blogpost to install both php5-mysqlnd and phpmyadmin

balping
  • 7,518
  • 3
  • 21
  • 35
0

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.

Marc B
  • 356,200
  • 43
  • 426
  • 500