Last modified: 2011-04-30 01:16:47 UTC
Here's what I did: "[wikimetr@buzz1 ~/www/bp/w/maintenance]$ php importDump.php /home/wikimetr/www/bp.xml.gz" And I got the normal startup routine, like the MIME Type declaration etc., but then the script stopped with this: "DB connection error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61) (localhost)" Please help!
Also seems to affect rebuildall.php, marking as critical due to possible blockage of all MySQL-related maintenance scripts.
Does MW run at all? This would sound like an issue with PHP not being able to talk to mySQL. Can you confirm that /tmp/mysql.sock does in fact exist?
MediaWiki works, yet /tmp/mysql.sock doesn't exist.
Sounds like a local configuration issue -- web and command-line PHP are probably loading different configuration files and have a different MySQL socket set. Check your php.ini file(s). (Alternatively you may be logging into a different machine than the actual web/database server.)
Nothing's wrong with the php.ini in the MediaWiki direcory: it just defines a session save path.
Closing this as INVALID; local PHP vs MySQL configuration issue where their socket file paths don't match. (This is common on for instance Mac OS X systems when PHP and MySQL are installed from separate sources -- stock Apple preinstalled PHP and MySQL's package intaller for MySQL. Other Unix-like systems may similarly have installs that default to non-matching locations. Generally shouldn't happen if you installed both from the same package source, but could always be funky!) See the MySQL and PHP manuals for how to configure them: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_socket http://us3.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket