martin-rohwedder / MySQL-Backup-Manager

MySQL Backup Manager is a simple software solution for backing up MySQL Databases automatically. It uses a Windows service for the backup process and has an GUI attached for administrating which databases needs backup
http://martin-rohwedder.github.io/MySQL-Backup-Manager/
30 stars 33 forks source link

remove database name from dump #28

Open d2k2-git opened 9 years ago

d2k2-git commented 9 years ago

in some cases you want to restore the dump to a different location: mysql newdatabasename < olddatabasename.sql

this would not work , cause there is the database name inside the dump:

CREATE DATABASE /!32312 IF NOT EXISTS/ mydb /!40100 DEFAULT CHARACTER SET latin1 /;

USE mydb;

it would be usefull to have an option to skip this two lines for the dump creation.

cbaerike commented 9 years ago

This is now available as of version 1.4.4: https://github.com/cbaerike/MySQL-Backup-Manager/releases