I've running MediaWiki on Linux with no problems, with multiple trouble-free installations, and am doing my first installation on Mac OS X.
I have Mac OSX 10.3.2 and am running MySQL 4.1. I already ran into the problem of having to set the root password the "old way" on MySQL, which allowed me to connect to the database server (the Mediawiki user guide was good on this point). However, it's now failing on this (see below, note tables were created by previous attempt). I was wondering if someone intimately familiar with the installation script could give a suggestion about how to proceed.
Also the line states wikidb exists. In fact, when I check using the command line client, the wikidb does not in fact exist.
Any suggestions from the experts? I'm at a loss.
Thanks,
Matthew Trump
================================================
PHP 4.3.2: 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.
Couldn't find GD library or ImageMagick; image thumbnailing disabled.
Installation directory: /Users/trump/vhosts/multnomah.decumanus.com/htdocs/mediawiki-1.3.7
Script URI path: /mediawiki
Connected as root (automatic)
Connected to database... 4.1.7-standard; enabling MySQL 4 enhancements
Database wikidb exists
There are already MediaWiki tables in this database. Checking if updates are needed...
...ipblocks is up to date. ...already have interwiki table ...indexes seem up to 20031107 standards ...have linkscc table. ...linkscc is up to date, or does not exist. Good. ...have hitcounter table. Converting links table to ID-ID... Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server.
On Nov 12, 2004, at 10:44 PM, Matthew Trump wrote:
I've running MediaWiki on Linux with no problems, with multiple trouble-free installations, and am doing my first installation on Mac OS X.
I have Mac OSX 10.3.2 and am running MySQL 4.1. I already ran into the problem of having to set the root password the "old way" on MySQL, which allowed me to connect to the database server (the Mediawiki user guide was good on this point). However, it's now failing on this (see below, note tables were created by previous attempt). I was wondering if someone intimately familiar with the installation script could give a suggestion about how to proceed.
I'd recommend you recompile PHP; it should then be able to link against the updated MySQL client libraries and be able to connect more reliably. Mac OS X 10.3 ships with 4.3.2 which is a little old anyway; the current PHP 4 release is 4.3.9 and there are a number of bug fixes.
You can get the original PHP installation's compile-time options (and much more) by running a script like this: <?php phpinfo(); ?>
You may need to explicitly pass --with-mysql=/usr/local/mysql or similar to get it to link against the MySQL 4.1 libraries if you installed the binaries in /usr/local/mysql.
If you give the configure script --prefix=/usr/local you can avoid overwriting the shipped PHP installation (or at least most of it); but you should probably back up /etc/httpd and /usr/libexec/httpd first just in case.
Also the line states wikidb exists. In fact, when I check using the command line client, the wikidb does not in fact exist.
Well, that's an interesting twist. In order to get as far as it does, it would have had to test for the existence of various tables and fields in tables in the database... so you have a database *somewhere*. :)
Can you confirm that you don't have two different MySQL daemons running on the machine somehow, with different connection sockets?
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org