I've attached a patch that fixes my problem with backups having an empty database.sql file, which was due to having a '#' character in the password. Using double quotes (") fixes that issue for me, and if you text-search this page: http://dev.mysql.com/doc/refman/5.5/en/option-files.html for "password" I think you will find that this is the recommended way to set the password in my.cnf.

It's annoying that the proc_close return is 0 even though the mysqldump command should definitely be returning non-zero when I get the password wrong. I have yet to actually test that mysqldump behaves in this way with file descriptor passing of a defaults-file. If it is returning non-zero and proc_close() is just getting it wrong, then I am not sure what we can do about it without having access to the pcntl extension.

To find out if this patch would fix your problem, configure the drupal site to use an alphanumeric password and invoke provision-migrate.

CommentFileSizeAuthor
issue1324466_19.patch400 byteswamilton
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven Jones’s picture

Ah sweet! Thanks so much more the patch! Reviewing...

Steven Jones’s picture

Sorry, I can't review this at the moment at Drupalcon, because the internet connection is just too slow, I'll review later.

Steven Jones’s picture

Status: Needs review » Reviewed & tested by the community

Tested and this does indeed fix this issue, thanks for waiting and thanks very much for the patch!

Steven Jones’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 6.x-1.x and 6.x-2.x. Thanks again!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 1748934 on dev-drupal-8, 6.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x authored by wamilton, committed by Steven Jones:
    Issue #1741814 by wamilton: Fixed Support For Non-Alphanumeric MySQL...