August 05Test your backupsComments
Display comments as
(Linear | Threaded)
Hm einen Workaround geben uns die MySQLer dort nicht, aber sie sagen *dass* es so ist:
http://dev.mysql.com/doc/mysql/de/innodb-auto-increment-column.html Wie man das allerdings umgehen kann (zumal der Dump *automatisch erstellt* wurde) steht da nicht.
Just for completeness reason, the mysqldum Version from 4.1 produces the follwoing option setting in the dump files:
SET NAMES utf8 UNIQUE_CHECKS=0 FOREIGN_KEY_CHECKS=0 SQL_MODE='*NO_AUTO_VALUE_ON_ZERO*'
As of 4.1.1, apparently.
http://dev.mysql.com/doc/mysql/en/server-sql-mode.html Normally, you generate the next sequence number for the column by inserting either NULL or 0 into it. NO_AUTO_VALUE_ON_ZERO suppresses this behavior for 0 so that only NULL generates the next sequence number. (New in MySQL 4.1.1) This mode can be useful if 0 has been stored in a table's AUTO_INCREMENT column. (This is not a recommended practice, by the way.) For example, if you dump the table with mysqldump and then reload it, MySQL normally generates new sequence numbers when it encounters the 0 values, resulting in a table with different contents than the one that was dumped. Enabling NO_AUTO_VALUE_ON_ZERO before reloading the dump file solves this problem. As of MySQL 4.1.1, mysqldump automatically includes a statement in the dump output to enable NO_AUTO_VALUE_ON_ZERO. |
QuicksearchComments about An InnoDB tutorial Mon, 21.07.2008 11:13 I have a problem in deleting t he child table row from my app lication using unique id. when I am using the command [...] about Nermalisation Sat, 05.07.2008 16:08 The point is that you have the option to not do, but then yo u'll be in a world of pain. Th e point is also to show [...] about Nermalisation Fri, 04.07.2008 15:40 Nice little article, and I lik e how you've used cats in your examples :) I am a little unclear what the point h [...] about Salmiakki - the official MySQL Drink Sun, 08.06.2008 11:34 150g of liquorice are enough t o get the original Salmiakki t aste.... you can add some more , anyway about phpvikinger.org: Things that have no name Sun, 11.05.2008 06:34 In reply to "stuff with no nam es":very informative and succi nct. I am retired and need to learn to build a website [...] about What is the difference between MySQL and Postgres? Wed, 30.04.2008 14:08 what is the difference between MySql and PostgreSql? about Fortune Cookie Wed, 09.04.2008 21:46 What a random fortune, who kno ws what it means. My favorite random fortune cookie note rea ds "you will make a good [...] Categories
Blog AdministrationDisclaimerAll examples, code-snippets, advice, trivia, etc. are supplied in the hope that they are useful, but no warranty of any kind is given. Use of trademarks is not intended as a challenge to them.
ImpressumCopyright 2005-2007 bei den jeweiligen Autorinnen der Beiträge. Die Infrastruktur von MySQL-dump wird betrieben von:
Azundris, Immanuelkirchstraße 18, 710405 Berlin, Germany
|
Gerade habe ich meinen ersten Artikel (englisch) in Azundris' technsichem blog MySQL-dump geschrieben: Ein kleines unerwartetes semantik Detail der DML bei mysql führte dazu, dass ich heute ein Backup nicht zurückspielen konnte (ohne manueller Korrektu
Tracked: Aug 05, 01:31