{"id":4971,"date":"2015-01-05T01:23:54","date_gmt":"2015-01-05T00:23:54","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=4971"},"modified":"2015-01-05T01:23:54","modified_gmt":"2015-01-05T00:23:54","slug":"mediawiki-dumpbackup-socket-port","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2015\/01\/05\/mediawiki-dumpbackup-socket-port\/","title":{"rendered":"how to use MediaWiki&#8217;s DumpBackup.php, if you need to connect through a socket or a port?"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/www.mediawiki.org\/wiki\/Manual:DumpBackup.php\">https:\/\/www.mediawiki.org\/wiki\/Manual:DumpBackup.php<\/a><\/li>\n<li><a href=\"https:\/\/www.mediawiki.org\/wiki\/Manual_talk:DumpBackup.php#my_MySQL_database_is_not_on_a_standard_port\">https:\/\/www.mediawiki.org\/wiki\/Manual_talk:DumpBackup.php#my_MySQL_database_is_not_on_a_standard_port<\/a>\u00a0\u2013 I took me a while to remember, that solving an issue would be done best right here \u2013 well, actually I was looking around for the right mailing list<\/li>\n<li><a href=\"https:\/\/www.mediawiki.org\/wiki\/Manual:MWDumper\">https:\/\/www.mediawiki.org\/wiki\/Manual:MWDumper<\/a><\/li>\n<\/ul>\n<p>My web-space provider has a lot of MySQL servers running for customers like me. \u00a0All these servers answer to requests<\/p>\n<ul>\n<li>on their resp. UNIX socket<\/li>\n<li>and also their resp. TCP\/IP port.<\/li>\n<\/ul>\n<p>So for my database I know<\/p>\n<ul>\n<li>my very special UNIX socket<\/li>\n<li>and my very special TCP\/IP port.<\/li>\n<\/ul>\n<p>And in order to connect\u00a0my MySQL database there, I use either of them.<\/p>\n<p>But: I see no way of how to get\u00a0DumpBackup.php to connect to my database like that.<\/p>\n<p>I don&#8217;t see a way with MWDumper either.<\/p>\n<p>Update:<\/p>\n<p>My PHP web applications see and use this php.ini :<\/p>\n<ul>\n<li>$HOME\/public_html\/cgi-bin\/php.ini<\/li>\n<\/ul>\n<p>This is why and how my MediaWiki and my WordPress see their MySQL database.<\/p>\n<p>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 &#8220;-c \u2026&#8221;. Used it, succeeded:<\/p>\n<pre>$ php -c\u00a0$HOME\/public_html\/cgi-bin\/php.ini \u2026\/maintenance\/dumpBackup.php \u2026\n$ php -c $HOME\/public_html\/cgi-bin\/php.ini \u2026\/maintenance\/dumpBackup.php --full --output=gzip:\/dumps\/abstract.xml.gz<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.mediawiki.org\/wiki\/Manual:DumpBackup.php https:\/\/www.mediawiki.org\/wiki\/Manual_talk:DumpBackup.php#my_MySQL_database_is_not_on_a_standard_port\u00a0\u2013 I took me a while to remember, that solving an issue would be done best right here \u2013 well, actually I was looking around for the right mailing list https:\/\/www.mediawiki.org\/wiki\/Manual:MWDumper My web-space provider has a lot of MySQL servers running for customers like me. \u00a0All these servers answer to requests on their resp. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-4971","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1ib","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/4971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=4971"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/4971\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=4971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=4971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=4971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}