Answer the question
In order to leave comments, you need to log in
How to separate schema and constraints in mysqldump?
When I save the database structure through phpmyadmin, I get something like
CREATE TABLE IF NOT EXISTS `file` (
`id` int(11) NOT NULL,
`name` text NOT NULL,
`path` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8;
ALTER TABLE `file`
ADD PRIMARY KEY (`id`);
mysqldump --opt --skip-extended-insert --complete-insert --skip-comments --no-create-info
getCREATE TABLE `file` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`path` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question