Skip to content

Export MySQL Table (only structure) AUTOINCREMENT error #14066

@mmendivilg

Description

@mmendivilg

Steps to reproduce

1.Have a MySQL Database with a Table with a int primary key with autoincrement
2.Have Data in your table
3.Select the Database from the left database menu (tree)
4.Click on Export from the top menu.
5.Check "Custom - display all possible options"
6.Uncheck the "data" from the export options (export only structure)

Expected behaviour

ALTER TABLE bank_account_statements
MODIFY id_bank_account_statement int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

Actual behaviour

-- See that AUTO_INCREMENT = 4 should not be there. Since I want to export a table with no data.

ALTER TABLE bank_account_statements
MODIFY id_bank_account_statement int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;

Server configuration

Operating system:
Localhost via UNIX socket

Web server:
5.6.38 - MySQL Community Server (GPL)
PHP version:
5.6.34

Database:
MySQL

phpMyAdmin version:
4.7.7

Client configuration

Browser:
Google Chrome

Operating system:
Windows 10

Metadata

Metadata

Assignees

Labels

BugA problem or regression with an existing feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions