Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 130583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:58:15+00:00 2026-05-11T05:58:15+00:00

I use the following command to output the schema for a MySQL db: mysqldump

  • 0

I use the following command to output the schema for a MySQL db:

mysqldump --no-data --skip-add-drop-table 

I will do this for two databases I want to compare, and then diff the two output files. This is my crude way of tracking database changes between environments.

However, a minor inconvenience to me is that the row count for each table is included as part of the table definition, as the AUTO_INCREMENT value, like so:

ENGINE=MyISAM AUTO_INCREMENT=844 DEFAULT CHARSET=latin1; 

I would think that the ‘–no-data’ flag would suppress any information about the table that references the data, including number of rows.

How do I suppress AUTO_INCREMENT=N in this output?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:58:16+00:00Added an answer on May 11, 2026 at 5:58 am

    Check out this ticket on this problem. It was closed as ‘Won’t Fix’

    You could do this, alternatively:

    mysqldump --no-data --skip-add-drop-table my_database | sed 's/AUTO_INCREMENT=[0-9]*\b//' > database.dump 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the following rsync command to backup my MySQL data to a machine
I use the following command to read in a csv: LOAD DATA INFILE '/Users/Tyler/Desktop/players_escaped.txt'
When I use make command, like make mica2, in TinyOS. The following problem will
How can I get the following output using linux command by comparing two text
A mysqldump command like the following: mysqldump -u<username> -p<password> -h<remote_db_host> -T<target_directory> <db_name> --fields-terminated-by=, will
for example i use following command to find a record SELECT `users`.`mail` FROM `users`
I want to use the following command: openssl x509 -noout -in /etc/pki/tls/certs/cert1.pem -enddate openssl
When I use the following code in command prompt, it works fine. But when
I wish to use the method with the following signature: exec(String command, String[] envp,
I use following style attribute so when i will start typing in text box

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.