New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export MySQL Table (only structure) AUTOINCREMENT error #14066
Comments
This only affects database-level exports, table-level exports seem to be fine. |
Also, both QA_4_7 and master are currently affected. |
In table-level exports, when selecting In database-level exports, the |
…base-level exports; issue phpmyadmin#14066 Signed-off-by: Xinyu Liu <meteor.lxy@foxmail.com>
…base-level exports; issue phpmyadmin#14066 Signed-off-by: Xinyu Liu <meteor.lxy@foxmail.com>
fix: AUTO_INCREMENT error when only exporting table structure in database-level exports; issue #14066
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
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
The text was updated successfully, but these errors were encountered: