I've done apt-get update and then tried install mysql:
Code:
sudo apt-get install php5-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
It's already installed. Trying to install php5-mysqli resulted in 'no installation candidate' error, but I did see that there's a separate package
php5-mysqlnd. Googling the difference between mysql and mysqlnd yielded
this page, which suggests that php 5.3 and higher would natively include support for mysqlnd.
This starts to get a bit puzzling because Ubuntu 14.04 includes php 5.5.9 apparently:
Code:
php -v
PHP 5.5.9-1ubuntu4.2 (cli) (built: Jun 25 2014 17:17:37)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
And my mysql client reports itself as 5.6.17:
Code:
mysql --version
mysql Ver 14.14 Distrib 5.6.17, for debian-linux-gnu (x86_64) using EditLine wrapper
And yet looking at the output of phpinfo, I see that its client version is reported as 5.5.37:
Code:
mysql
MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 5.5.37
mysqli
MysqlI Support => enabled
Client API library version => 5.5.37
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0
Client API header version => 5.5.37
pdo_mysql
PDO Driver for MySQL => enabled
Client API version => 5.5.37
Wondering why the PHP mysql client version doesn't match the mysql-client version reported from the command line.
---------- Post added 06-27-14 at 11:17 AM ----------
Also: kind of dreading installing php 5.5 when this server may be running for the next five years!
Is there not some way to get the server to use the latest available client without taking upon myself the duty of continually recompiling from source?