Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to use MySQL Workbench

This guide gives you a simple first tour of MySQL Workbench, a free tool for working with databases.

Databases2 min read11 steps4 screenshots

What is MySQL Workbench?

A database stores data in tables, like a spreadsheet does. MySQL Workbench is a program you install on your own computer. It gives you a window where you can see your database and work with it. You do not need to type many commands. It is made by Oracle, not by Hostvento.

What you can do with it

  • Connect to a database and look at its tables.
  • Run SQL queries. A query is a command written in SQL, the language databases understand.
  • Create and change tables.
  • Back up and restore data.
  • Draw a diagram of how tables link together.

Steps for a first look

  1. Download MySQL Workbench from the official MySQL website. Install it like any other program.
    MySQL workbench 1
  2. Open it. The first screen is called the Home screen.
  3. Click the plus sign next to MySQL Connections to make a connection. See our guide on connecting to a database with MySQL Workbench for the details.
  4. Double-click your new connection to open it.
    MySQL workbench 2
  5. On the left, find the Schemas panel. A schema is just another word for a database.
  6. Double-click a database name. It becomes bold. This is now your active database.
    MySQL workbench 3
    MySQL workbench 4
  7. Click the arrow beside Tables to see the tables inside.

Run your first query

  1. Click the SQL tab in the middle. It is a blank editor.
  2. Type this line. Replace tablename with a real table name:
    SELECT * FROM tablename LIMIT 10;
    This asks for the first 10 rows of that table.
  3. Click the lightning bolt button to run it.
  4. The results show in a grid below.

Warning: Commands like DELETE and DROP remove data for good. Take a backup before you run them.

Tip: To use Workbench with your Hostvento database, remote access may need to be switched on first. Ask Hostvento support whether this is allowed on your plan.

Quick recap

  • MySQL Workbench is a free desktop tool for databases.
  • Make a connection, then double-click it to open.
  • Use the Schemas panel to browse tables.
  • Run queries in the SQL tab with the lightning bolt.
  • Back up before deleting anything.