When we want to do risky operations on the database, we need to back up the database every time we go online During projects, there will always be inconsistencies in the online and offline database structures. This article will explain how to use Navicat to easily solve these two problems.
Navicat is a set of fast and reliable database management tools designed to simplify database management and reduce system management costs. It is designed to meet the needs of database administrators, developers and small and medium-sized businesses. Navicat is built with an intuitive graphical user interface that allows you to create, organize, access and share information in a secure and simple way.
Note: This tutorial uses Navicat12 version, download address: www.navicat.com.cn/download/navicat-premium
Now there are two databases in the database, mall-test represents the test environment database, and mall-prod represents the online environment database.
Now we first back up the mall-test database. After the backup is completed, delete the data in the product table, and then use the backup to restore the data.
Currently there is only the database table of the product module in the database, and there is certain data in the pms_product table.
First click the backup icon on the top toolbar , then click the New Backup button
Click the Start button to start the backup
After the backup is completed, a backup file will be generated
When the structure was synchronized again, it was found that the two database structures were completely consistent
The above is the detailed content of Navicat practical functions: data backup and structure synchronization. For more information, please follow other related articles on the PHP Chinese website!