export database structure

时光总嘲笑我的痴心妄想 提交于 2021-01-28 04:36:03

问题


How can ai export database through PhpMyAdmin

but I need to export it as file that I run in PHP , such as here.

the reason I need it this way is because I can create stuff faster this way.


回答1:


The method varies depending on the version of PHPMyAdmin you're using.

Older Version

Select the database you want to export and click on the 'Export' tab.

Click 'select all' above the table list, and uncheck the 'Data' field on the right hand side of the page.

Make sure the output format is set to SQL, and uncheck the 'Save as File' field if you just want to copy and paste the output.

Click 'Go'.

Newer, AJAX Version

Select the database you want to export and click on the 'Export' tab.

Select the 'Custom' option, click 'Select All' above the list of tables that appears.

Select the 'Save as File' option if you want to save the output, otherwise leave it as-is to copy and paste it.

Under 'Format specific options', select the 'Structure' option.

Click 'Go'.




回答2:


Uncheck the data column once you've selected Custom - display all possible options :




回答3:


Click the database you want to export and then go to the 'export' tab. Choose how the export should work with all of the checkboxes and then make sure the 'save as file' box is checked. Also select the file format and compression settings you would like.



来源:https://stackoverflow.com/questions/8962143/export-database-structure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!