Workbench

How to start MySQL Workbench

If you have already installed it, open the “MySQL” folder from the Windows Start menu with your mouse. There is a shortcut for “MySQL Workbench” in the folder, so click on it to start it.

MySQL Workbench

#How to check and use Schema

When you start MySQL Workbench, the DB may not be displayed. At startup, “Administrator” may be selected in the Navigator panel on the left side of the screen, so select the “Schemas” tab. MySQL Workbench

This allows you to display registered DBs, edit tables on DBs, etc. MySQL Workbench

Schema display update

If you want to update what you see on your screen, such as when you create a table, click the small “Refresh” icon in the image below. Rreload

CSV import

The features of MySQLWorkbench’s CSV import are as follows:

  • When importing into an existing table, column names and number of columns must match exactly.
  • If you don’t have a table yet, you can choose to create a new one in the import wizard

Now let’s actually import it. There is already a table called test in the DB, and we want to add 3 records to it in the text.csv file.

There are no records in the test table. Import

Right-click the table name you want to import (here test) and select “Table Data Import Wizard”. Import

A dialog will appear, select the file to import and select “Next”. CSV

Select whether to add data to an existing table or create a new table and import data into it. Table

Configure settings such as whether to include column names when importing. Table

A confirmation screen will appear, allowing you to proceed to the next step. Data Data2

After executing the import, a results screen will be displayed. Press “Finish” to close the screen. After

You can see the imported data by reviewing the table. Imported Data

CSV export

To export table data to a CSV file, right-click the table and run “Table Data Export Wizard”. Export Wizard

Select the output column. Export ClumnSpecify the output file, etc. Export Type

Execute the process. Export Do1 Export Do2

Processing completed. Export Finished

The CSV file is output to the specified location. Export Finished