📜  phpmyadmin 导出数据库 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:36.230000             🧑  作者: Mango

代码示例1
EXPORT
1. Connect to your database using phpMyAdmin.
2. From the left-side, select your database.
3. Click the Export tab at the top of the panel.
4. Select the Custom option.
5. You can select the file format for your database. In this example, we will use the default SQL option.
6. Click Select All in the Export box to choose to export all tables.
7. At this stage make note of the WordPress prefix. It will be needed when you are adding the database to your new WordPress Hosting service. In this example it is wp_.
8. Select the check box, Add DROP TABLE / VIEW / PROCEDURE / FUNCTION.
9. If you wish to change the name of your backup database, you can do so in the File name template section .
10. Click Go.
11. This will export your database content in the form of an .sql file to your local computer.