Windows installation Mysql Workbench and common operations

Mysql Workbench is the visual operation interface that comes with MySQL. It has powerful functions, but compared with Navicat, the interface feels awkward, but actually it’s okay once you’re used to it. Each one has its own characteristics. Commonly used operations are recorded here.
Official manual: MySQL Workbench

1. Installation

1. Download

Official address:https://dev.mysql.com/downloads/mysql/, simply selectMSI Installer.
Insert image description here

1. Installation

Just select it when installing mysql
Insert image description here

2. Others

You may be prompted to install VC++
Insert image description here

2. Operation

1. Add new connection

Open it for the first time and click the + sign to configure it.
Insert image description here

2. Initialization

Enter name and password to test whether the connection is normal.
Click to set the password individually. Store in Vault...
You do not need to set a default table
Insert image description here

3. Enter the connection

Click the icon
Insert image description here
to enter the mysql operation interface
Insert image description here

3. Operation

1. Account permissions

Insert image description here

2. Database management

New database
Insert image description here
Confirm generation
Insert image description here
Complete
Insert image description here

3. Table design

New table
Insert image description here
Configuration table
Insert image description here
Statements can be modified
Insert image description here

4. Import data and restore backup

Method 1: Execute SQL statement

If the sql statement is relatively short, you can use this method to open and select.sql
Insert image description here
to execute the sql statement
Insert image description here
Problem
Possible Opening sql will prompt a gbk problem. Please refer to the solution:
mysql workbench has an error when importing a table containing Chinese content. The error is gbk codec can't decode.
mysql An error occurred when workbench imported a table containing Chinese content. The error was gbk codec can't decode
Insert image description here

I wanted to import a 500m piece of data, but this method was unsuccessful. Even if the encoding was changed, there would still be other error messages. This involves method two, which is actually the most commonly used method.

Method 2: Perform the import operation

Can be accessed from the menu
Insert image description here

You can also operate from the management tag
Insert image description here
Import completed
Insert image description here
Refresh to see if the table has been imported successfully
Insert image description here
Used a few days ago It took 4 hours to import 500m data into workbench. . . It takes half an hour to use navicat~~Maybe it is not configured properly.

5. Export data and generate backup

Refer to the picture below. If there is any abnormality, please refer to "MySQL-Workbench Database Backup"
Insert image description here

6. View data

Refer to the picture below
Insert image description here

7. Others

display panel

Insert image description here

Regular backup

As of 6.2, there is no backup scheduling/automation option in MySQL Workbench.

Insert image description here

Guess you like

Origin blog.csdn.net/snans/article/details/134745045