38

I have a huge db that hangs the server if I try to export it, is there a way I can export it without all the data? Only the tables structure.

fazpas
  • 1,583
  • 3
  • 18
  • 18
  • I come across this post as I was looking to export table structure only through phpmyadmin however I wanted to use the export as documentation so I was looking to export it in PDF with foreign key and inter table relation preserved: http://blog.cuelogic.co.in/how-to-export-mysql-database-schema-to-pdf-with-foreign-keys-and-inter/ – Rahul Jun 03 '13 at 09:56

4 Answers4

33

In the Export tab for your database, there's a checkbox on the lower right that says Data.

Uncheck it and you should only have the bare structure in your export file.

alt text

Gaff
  • 18,569
  • 15
  • 57
  • 68
Kenny Rasschaert
  • 1,012
  • 8
  • 16
24

Select your database or table.

Select the Export tab.

Below Export method, select Custom.

Below Tables, check the appropriate Structure boxes.

Here's a screenshot: enter image description here

Heptite
  • 19,383
  • 5
  • 58
  • 71
Leo
  • 339
  • 3
  • 9
24

With the newer phpmyadmin versions, in the export tab for your database or table click on custom. enter image description here

Under Format-specific options click dump table -> structure enter image description here

Ismail
  • 399
  • 3
  • 8
  • If I do two separate dumps - one for the data and one for the schema - is there a lot of overlap in terms of what gets outputted? (Logically there shouldn't be, but you can never know for sure.) – posfan12 Nov 04 '19 at 01:03
0

There is a checkbox called "Data". Untick it and phpMyAdmin should only return the table structure.

maschka
  • 195
  • 3
  • 6