We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8edfb2 + 00c56ed commit f2471c6Copy full SHA for f2471c6
src/helper/Site_Backup_Restore.php
@@ -360,6 +360,11 @@ private function backup_php_wp( $backup_dir ) {
360
}
361
362
private function backup_db( $backup_dir ) {
363
+ // Flush MySQL privileges before backup
364
+ if ( 'running' === \EE_DOCKER::container_status( GLOBAL_DB_CONTAINER ) ) {
365
+ EE::exec( 'docker exec -it ' . GLOBAL_DB_CONTAINER . " bash -c 'mysql -uroot -p\$MYSQL_ROOT_PASSWORD -e\"FLUSH PRIVILEGES\"'" );
366
+ }
367
+
368
EE::log( 'Backing up database.' );
369
$db_name = $this->site_data['db_name'];
370
$db_user = $this->site_data['db_user'];
0 commit comments