MySQL / php differ
m.seaman at infracaninophile.co.uk
Sun Mar 1 04:52:41 PST 2009
Aryeh M. Friedman wrote:
> Jos Chrispijn wrote:
>> | FreeBSD 6.4-STABLE
>> Just upgraded my MySQL server/client to v5.0.77 and php version to
>> php5-5.2.8 but something struck my eye when opening phpmyadmin, saying:
>> 'Your PHP MySQL library version 4.0.27 differs from your MySQL server
>> version 5.0.77. This may cause unpredictable behavior'.
>> I obviously have my php MySQL library running wrong version. Can you
>> tell me How could I solve this matter in a quick way?
>> Jos Chrispijn
> portmaster -rf database/phpmyadmin
Actually, you may only need to recompile databases/php5-mysql (possibly plus some
dependencies) and then restart apache. If your DB is on the same machine as where
you're running phpMyAdmin, then you will have the 5.0.77 client libraries already
installed and recompiling that one package should fix the observed problem.
If not, then you may need to update the mysql client libraries and anything
that links to them on the phpMyAdmin machine. You can check what php5-mysql
depends on like so:
% pkg_info -rx php5-mysql
Information for php5-mysql-5.2.8:
You won't get exactly the same list -- the important bit is the 'mysql-client'
line. If you aren't using 5.0.77 client then:
# portupgrade -o databases/mysql50-client -fr mysql-client-X.X.XX
(fill in the version number of the client libraries you actually do have
installed). You may also see output for php5-mysqli if you have that
module installed: the portupgrade command above should fix both modules.
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090301/b30a4638/signature.pgp
More information about the freebsd-questions