You can use ALTER TABLE
to change the auto_increment initial value:
ALTER TABLE tbl AUTO_INCREMENT = 5;
See the MySQL reference for more details.
More Related Contents:
- left join query keep a column empty
- How to do a regular expression replace in MySQL?
- How to solve “Error: MySQL shutdown unexpectedly”?
- Count the number of occurrences of a string in a VARCHAR field?
- MySQL 8.0 – Client does not support authentication protocol requested by server; consider upgrading MySQL client
- What is the ideal data type to use when storing latitude / longitude in a MySQL database?
- Can’t connect to MySQL server error 111 [closed]
- How to import a CSV file into a MySQL table
- MySQL match() against() – order by relevance and column?
- Maximum length for MySQL type text
- gem install: Failed to build gem native extension (can’t find header files)
- Entity-Attribute-Value Table Design
- Mysql localhost != 127.0.0.1?
- How do I decide when to use right joins/left joins or inner joins Or how to determine which table is on which side?
- SQL Group By with an Order By
- How to Convert UTC Date To Local time Zone in MySql Select Query
- UPDATE all records with a random number from a range
- mysql sorting of version numbers
- Get Insert Statement for existing row in MySQL
- DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled
- Can’t access mysql from command line on a Mac
- Alter table if exists or create if doesn’t
- How long is the SHA256 hash?
- MySql Query Replace NULL with Empty String in Select
- how to trim leading zeros from alphanumeric text in mysql function
- Correct way to keep pooled connections alive (or time them out and get fresh ones) during longer inactivity for MySQL, Grails 2 app
- What are the max number of allowable parameters per database provider type?
- MySQL: how to index an “OR” clause
- How to handle a query with special characters / (forward slash) and \ (backslash)
- mySQL query to search all tables within a database for a string?