Table of Contents
Summary
Navicat
Introduction to using the database
Data Backup
Data overview in mall-test
Backup data
Clear the data of the pms_product table
Restore data from backup
Home Database navicat Navicat practical functions: data backup and structure synchronization

Navicat practical functions: data backup and structure synchronization

Jun 19, 2019 pm 03:18 PM
navicat sql Synchronize backup

Navicat practical functions: data backup and structure synchronization

Summary

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

Introduction to using the database

Now there are two databases in the database, mall-test represents the test environment database, and mall-prod represents the online environment database.

Data Backup

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.

Data overview in mall-test

Currently there is only the database table of the product module in the database, and there is certain data in the pms_product table.

下载 (2).jpg

下载 (3).jpg

Backup data

  • First click the backup icon on the top toolbar , then click the New Backup button

下载 (4).jpg

  • Click the Start button to start the backup

下载 (5).jpg

  • After the backup is completed, a backup file will be generated

下载 (6).jpg

Clear the data of the pms_product table

下载 (7).jpg

Restore data from backup

下载 (8).jpg

下载 (9).jpg

##Structure synchronization

Related background description

The original mall-test module only had the table of the product module. Now after a period of development, we have added the order module, and at the same time deleted and modified some tables of the product module. The mall-prod table still has the original product module table. What we need to do now is to synchronize the database table structure of mall-test to mall-prod.

下载 (10).jpg

下载 (11).jpg

Perform structure synchronization

  • Select the structure synchronization function

下载 (12).jpg

  • Select the source database and target database and click the comparison button

下载 (13).jpg

  • You can see the modified, added and deleted table information. Click Deploy and a preview of the sql script will appear

下载 (14).jpg

    ##After confirming the deployment script information, click Run to synchronize the data structure

下载 (15).jpg

  • When the structure was synchronized again, it was found that the two database structures were completely consistent

下载 (16).jpg

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!

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use navicat keygen patch How to use navicat keygen patch Apr 09, 2025 am 07:18 AM

Navicat Keygen Patch is a key generator that activates Navicat Premium, allowing you to use the full functionality of the software without purchasing a license. How to use: 1) Download and install Keygen Patch; 2) Start Navicat Premium; 3) Generate the serial number and activation code; 4) Copy the key; 5) Activate Navicat Premium, and Navicat Premium can be activated.

How to see if navicat is activated How to see if navicat is activated Apr 09, 2025 am 07:30 AM

How to check if Navicat is activated: View the Registration Information section in the "About Navicat" of the Help menu: Activated: Show valid registration information (name, organization, expiration date) Not activated: Show "Not Registered" or "Register Information Not Available" Check the activation icon in the toolbar: The green icon indicates that the active observation trial period countdown: The trial version will show the countdown at startup, the activated version will not view feature limitations: The trial version may limit advanced features, and the activated version will unlock all functions

How to create navicat premium How to create navicat premium Apr 09, 2025 am 07:09 AM

Create a database using Navicat Premium: Connect to the database server and enter the connection parameters. Right-click on the server and select Create Database. Enter the name of the new database and the specified character set and collation. Connect to the new database and create the table in the Object Browser. Right-click on the table and select Insert Data to insert the data.

How to create a new connection to mysql in navicat How to create a new connection to mysql in navicat Apr 09, 2025 am 07:21 AM

You can create a new MySQL connection in Navicat by following the steps: Open the application and select New Connection (Ctrl N). Select "MySQL" as the connection type. Enter the hostname/IP address, port, username, and password. (Optional) Configure advanced options. Save the connection and enter the connection name.

How to replicate a database in navicat How to replicate a database in navicat Apr 09, 2025 am 06:33 AM

To copy a database using Navicat: Create a new database and specify the connection information. Select the table to copy and select Contain data. Specify a limit (optional) in the Restrictions tab. Start the copy process and check the results.

How to analyze navicat explanation How to analyze navicat explanation Apr 09, 2025 am 07:33 AM

Navicat provides data analysis capabilities, including: Create pivot tables: Aggregate data by field. Draw charts: Visualize data patterns. Writing SQL queries: perform complex analysis.

MySQL and SQL: Essential Skills for Developers MySQL and SQL: Essential Skills for Developers Apr 10, 2025 am 09:30 AM

MySQL and SQL are essential skills for developers. 1.MySQL is an open source relational database management system, and SQL is the standard language used to manage and operate databases. 2.MySQL supports multiple storage engines through efficient data storage and retrieval functions, and SQL completes complex data operations through simple statements. 3. Examples of usage include basic queries and advanced queries, such as filtering and sorting by condition. 4. Common errors include syntax errors and performance issues, which can be optimized by checking SQL statements and using EXPLAIN commands. 5. Performance optimization techniques include using indexes, avoiding full table scanning, optimizing JOIN operations and improving code readability.

How to export the results of a navicat query How to export the results of a navicat query Apr 09, 2025 am 06:21 AM

Export query results with Navicat can be performed step by step: 1. Select the data to export 2. Select the export format: CSV, Excel, XML, or JSON 3. Configure the export options: Select columns, separators, and filters 4. Select the save location 5. Start exporting 6. Verify the results

See all articles