wp.jochen.hayek.name/blog-en

how to use MediaWiki’s DumpBackup.php, if you need to connect through a socket or a port?

My web-space provider has a lot of MySQL servers running for customers like me.  All these servers answer to requests

So for my database I know

And in order to connect my MySQL database there, I use either of them.

But: I see no way of how to get DumpBackup.php to connect to my database like that.

I don’t see a way with MWDumper either.

Update:

My PHP web applications see and use this php.ini :

This is why and how my MediaWiki and my WordPress see their MySQL database.

So why does dumpBackup.php started on the command line not see and use that php.ini ? Well PHP from the command line behaves differently. It does not see that file. But you can tell it to use a file through “-c …”. Used it, succeeded:

$ php -c $HOME/public_html/cgi-bin/php.ini …/maintenance/dumpBackup.php …
$ php -c $HOME/public_html/cgi-bin/php.ini …/maintenance/dumpBackup.php --full --output=gzip:/dumps/abstract.xml.gz
Exit mobile version