Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In provision/db/mysql/mysql_service.inc, there is a 'sed' on some MySQL data which can cause problems when migrating a site with views/triggers.
Attached a tiny patch to make that sed more tolerant to various MySQL versions.
i.e. my sqldump had:
/*!50017 DEFINER=`example`@`localhost`*/
And the sed regexp expected a space after the hostname:
/*!50017 DEFINER=`example`@`localhost` */
Noticed this on a MySQL server running 5.1.49-3~bpo50+1.
Comment | File | Size | Author |
---|---|---|---|
provision-sed.patch | 1.2 KB | bgm |
Comments
Comment #1
bgm CreditAttribution: bgm commentedComment #2
Steven Jones CreditAttribution: Steven Jones commentedThanks! Patch tested, and added.