I seem to be having a similar problem installing MediaWiki 1.5.4 on Mac OS X 10.3.9 with Mysql 5.0.17, Apache 1.3.29 and PHP-4.3.11 (as was recommended by http://meta.wikimedia.org/wiki/Running_MediaWiki_on_Mac_OS_X).
I can't seem to resolve the "You are using MySQL 4.1 server, but PHP is linked to old client libraries" error message:
MediaWiki 1.5.4 installation Please include all of the lines below when reporting installation problems. Checking environment... * PHP 4.3.11: ok * PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * PHP is configured with no memory_limit. * Have zlib support; enabling output compression. * Neither Turck MMCache nor eAccelerator are installed, can't use object caching functions * GNU diff3 not found. * Found ImageMagick: /usr/local/bin/convert; image thumbnailing will be enabled if you enable uploads. * Installation directory: /Users/David/Sites/wiki * Script URI path: /~David/wiki * PHP is linked with old MySQL client libraries. If you are using a MySQL 4.1 server and have problems connecting to the database, see http://dev.mysql.com/doc/mysql/en/old-client.html for help. * Trying to connect to MySQL on localhost as root... * Connected as root (automatic) * Connected to 5.0.17-standard; enabling MySQL 4 enhancements; You are using MySQL 4.1 server, but PHP is linked to old client libraries; if you have trouble with authentication, see http://dev.mysql.com/doc/mysql/en/old-client.html for help. * Created database wikidb * Creating tables... using MySQL 3/4 table defs... done. * Initializing data... * Granting user permissions... Wiki has a problem Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: )
I've tried using the information provided via the link to http://dev.mysql.com/doc/mysql/en/old-client.html, but without avail. A link on that page directs me to http://www.php.net/mysqli. The only way I could think to use this info was to try at the terminal:
cd /usr/local/mysql-standard-5.0.17-osx10.3-powerpc/ .configure --with-mysqli=/Library/MySQL/bin/mysql_config
...though that's probably not right since I get...
NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it!
Any suggestions would be most helpful. Thanks!
On 12/24/05, D B dkbyrne@gmail.com wrote:
I seem to be having a similar problem installing MediaWiki 1.5.4 on Mac OS X 10.3.9 with Mysql 5.0.17, Apache 1.3.29 and PHP-4.3.11 (as was recommended by http://meta.wikimedia.org/wiki/Running_MediaWiki_on_Mac_OS_X).
I can't seem to resolve the "You are using MySQL 4.1 server, but PHP is linked to old client libraries" error message:
[snip]
I've tried using the information provided via the link to http://dev.mysql.com/doc/mysql/en/old-client.html, but without avail. A link on that page directs me to http://www.php.net/mysqli. The only way I could think to use this info was to try at the terminal:
[snip]
That part of the MySQL documentation is not really correct. PHP's mysql extension *does* support the new authentication, *if* it has been compiled using the newer MySQL libraries. (MediaWiki does not support the mysqli extension, only the standard mysql extension, at this time.)
If you are reasonably familiar with installing Unix programs from source and have the developer tools installed, you can recompile PHP from source code, passing --with-mysql=/usr/local/mysql to have it use the libraries from the MySQL.
If that sounds complicated, you should probably first try the configuration options mentioned in the earlier paragraphs of http://dev.mysql.com/doc/refman/5.0/en/old-client.html
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org