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
.
1. Installation
Just select it when installing mysql
2. Others
You may be prompted to install VC++
2. Operation
1. Add new connection
Open it for the first time and click the + sign to configure it.
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
3. Enter the connection
Click the icon
to enter the mysql operation interface
3. Operation
1. Account permissions
2. Database management
New database
Confirm generation
Complete
3. Table design
New table
Configuration table
Statements can be modified
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
to execute the sql statement
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
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
You can also operate from the management tag
Import completed
Refresh to see if the table has been imported successfully
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"
6. View data
Refer to the picture below
7. Others
display panel
Regular backup
As of 6.2, there is no backup scheduling/automation option in MySQL Workbench.