Home  >  Article  >  Operation and Maintenance  >  How to export database in phpstudy

How to export database in phpstudy

angryTom
angryTomOriginal
2019-10-21 10:29:238749browse

How to export database in phpstudy

phpstudyHow to export the database

For a system, data is a very important part. The process of system deployment or environment migration is often accompanied by the import and export of data. phpStudy also comes with data import and export functions. The export and export function can be found in the main interface.

How to export database in phpstudy

1. In order to demonstrate import and export, we first create a database: phpstudy, create a table: user, and insert two pieces of dataHow to export database in phpstudy

2. Open phpStudy-》Mysql Manager-》Mysql import and export

Enter password: root, backup database: phpstudy, click export

Since there was relatively little data, it was successful immediately and the path to the export file was automatically opened.

Open the export file and you can see that it contains the sql statement to create the database.

How to export database in phpstudy

How to export database in phpstudy

How to export database in phpstudy

3. In order to verify the import function, we can put the Data is cleared. It can be seen from the picture that there is no table in the database.

How to export database in phpstudy

4. Open phpStudy-》Mysql Manager-》Mysql Import and Export

Select the restore file path and click The data backup folder will then be opened automatically. We select the data file we just exported. Fill in the database to be restored to: phpstudy. Click Import, and a black window will appear, flashing by, indicating that the import has been completed.

How to export database in phpstudy

#5. Check that the previous data has appeared in the database and the import was successful.

How to export database in phpstudy

Recommended tutorial: phpstudy usage tutorial

The above is the detailed content of How to export database in phpstudy. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to reinstall phpstudyNext article:How to reinstall phpstudy