Backup / Restore MySql with mydump.
Posted: Tue 03 Jan 2006 10:41
I´m having problem with backup and restoring.
I think the problem comes from foreign keys.
The backup runs just fine, but when I want to restore the sql-file generated I get errors.
When I compare the result SQL-file made by mydump with mysql administrators backup I see the difference.
The following rows are not included in mydac´s backup file.
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
How can I force MyDump to skip the foreign key check, or to use the above code.
Cant find it in manual, Object inspector or code.
The only thing close is disable keys. But that´s only valid for inserts?
Plz help
/Alex
I think the problem comes from foreign keys.
The backup runs just fine, but when I want to restore the sql-file generated I get errors.
When I compare the result SQL-file made by mydump with mysql administrators backup I see the difference.
The following rows are not included in mydac´s backup file.
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
How can I force MyDump to skip the foreign key check, or to use the above code.
Cant find it in manual, Object inspector or code.
The only thing close is disable keys. But that´s only valid for inserts?
Plz help
/Alex