Export of the struture of the same table with PhpMyAdmin:
`DROP TABLE IF EXISTS `test_apprentis`; CREATE TABLE IF NOT EXISTS `test_apprentis` ( `a_id` smallint
For those that need a solution for this, use the flag --single-transaction during mysqldump, so it will put PRIMARY KEY under CREATE TABLE like follows:
--single-transaction
mysqldump
PRIMARY KEY
CREATE TABLE
mysqldump --databases mydatabase --single-transaction -u user -p > ./exported_file_name.sql