{"id":2375,"date":"2021-12-11T09:08:43","date_gmt":"2021-12-11T09:08:43","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=2375"},"modified":"2021-12-11T10:06:38","modified_gmt":"2021-12-11T10:06:38","slug":"i-would-like-to-dump-the-table-structure-for-my-mysql-database-but-none-of-the-data","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/i-would-like-to-dump-the-table-structure-for-my-mysql-database-but-none-of-the-data\/","title":{"rendered":"I would like to dump the Table Structure for my MySQL Database, but none of the data."},"content":{"rendered":"<p>The command line option from SSH is given as below:<\/p>\n<p>mysql -d -p database_name &gt; file.sql.<\/p>\n<p>Where &#8216;database_name&#8217; is the name of your database, and &#8216;file.sql&#8217; is the name of the file you would like to write the table structure to.<\/p>\n<p>You\u00a0will be prompted you for a password (-p). Normally mysqldump gives you the entire database, with the &#8216;-d&#8217; option, you\u00a0need to tell it to not include the data, just the table structure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The command line option from SSH is given as below: mysql -d -p database_name &gt; file.sql. Where &#8216;database_name&#8217; is the name of your database, and &#8216;file.sql&#8217; is the name of the file you would like to write the table structure to. You\u00a0will be prompted you for a password (-p). Normally mysqldump gives you the entire [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-2375","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=2375"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2375\/revisions"}],"predecessor-version":[{"id":2376,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2375\/revisions\/2376"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=2375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=2375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=2375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}