Tell me, please, how to import only the structure of the Mysql database, and not the data itself, in order to fill it with a clean sheet? Show me where to read about it, if you don’t say a few words. Thank.
2 answers
Import in a place with data, and then, when exporting via phpmyadmin, look at the "Save Table" item in the "Format Parameters" section.
|
You can create a database structure without data through the console:
mysqldump --no-data - u USER -p DATABASE > /path/to/file/dump.sql
and then pour:
mysql -u USER -p DATABASE < /path/to/dump.sql
|
--no-data
will get a backup copy of only the structure. - KiTE 2:19 pm