About the author

Love interactivity, programming, music and the web.

Currently work using Ruby/Rails, JavaScript and ActionScript, but know other languages.

Developer at Ocapi

Find me on

Tip - Omit auto-increment values using mysqldump

June 25th 2011

If you want to export just the records, omiting the auto-increment id column, you should do this trick:

There is NO native way to do that only using mysqldump. So, enjoy.

Note: For Mac OS X users, use sed -E instead of sed -r.

Tags: mysqldump omit auto increment mysql