This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-15. For the latest, interactive version please visit https://mariadb.com/kb/.

How can I Import Only a Table's Structure?

The easiest way to import only the structure of databases and tables is to export only that, and not the data. You can use mysqldump to export your database with --no-data option. Many GUI clients have similar options. Importing schema from other database systems, though, is more difficult and may not be possible.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.