MySQL Workbench How to create database.


This tutorial will use MySQL workbench to create a database. Many GUI tools are available like Workbench, Beekeeper Studio, dbForge Studio, etc.

MySQL Workbench is for SQL development, administration, and database design for MySQL.

You can connect to many environments of MySQL hosts into a single Workbench.

MySQL Workbench provides administration tools for server configuration, User control, backup and restoration.

MySQL Workbench is available on Linux, Mac, and Windows. You can refer to the link to download the workbench of your choice.

Before creating the database, if you want to set up MySQL in Linux, please refer to the following link.

If you want to upgrade the MySQL version to another version then refer to the link.

How to Create a Database using MySQL Workbench(GUI).

So to create a database in GUI, make the connection then connect with that connection.

Click on + sign to add the mysql service connection, to create a database.

Click on the “+” symbol to add the connection for MySQL Server. It can be the localhost, RDS Server, or any instance running on the VM.

So for our example, we have set up the MySQL server into a local system.

Put the hostname, port number, username and password for the connection.

So fill the required details like “Connection Name”, “Hostname”, “Port”, “Username” and “Password”.

Click on “Test Connection”, and you will get the prompt connection established.

Connection created in MySQL Workbench.

When the connection got created, we can double click on the connection to connect to the MySQL Server.

Double click on the connection it will ask for the password in Workbench.

After it will prompt for the password, then put the password you had set up at the time of MySQL.

Then you will see a Query Tab in the MySQL Workbench, In which we have to execute our Query.

Then in the Query tab, create the Database in MySQL with the create database Statement.

Now let’s Execute the Query to create a Database and show the databases.

> create database tastethelinux;

> show databases;

In MySQL workbench, there are 3 columns,

  1. Query Tab to write and execute the Query.
  2. Result Grid for Results of the Output.
  3. Action Output has the action performed on the server.

If you want to learn more about mysql, then refer to the link.

3 Replies to “MySQL Workbench How to create database.

Give your valuable time