Hello,
The usually happens when php is compiled with the 3.x mysql client instead of the installed version of mysql client.
To check, create an info.php with the contents:
then view it through apache. About 3/4 down the page is the mysql section, which should show you what version of mysql client is isntalled into php. Optimally, it should match the version of mysql you have installed.
Possible causes for not having the correct version, check your:
/usr/local/directadmin/customapache/configure.php
file. It should have either:
--with-mysql=/usr \
or
--with-mysql=/usr/local \
depending on your system. (redhats first, debian/freebsd 2nd version).
If you only have:
--with-mysql \
then it will be including the built in client libs that come with php, which are for mysql 3 (old).
If you've updated your configure.php, the recompile php with:
Code:
cd /usr/local/directadmin/customapache
./build clean
./build php n
Another possible reason might be the lack of a MySQL-shared rpm. Type:
.. it should show 4 rpms: MySQL-server, MySQL-client, MySQL-devel and MySQL-shared. All 4 rpms must also be using the same version.
We have rpms available on our files server if you need:
http://files.directadmin.com/services/all/mysql/
or get them from dev.mysql.com as well, if you need other versions. After updating your mysql rpms, recompile php (see above)
John