0% found this document useful (0 votes)
19 views15 pages

Run MYSQL Workbench v2

This document provides step-by-step instructions on how to run MYSQL workbench. It details how to log in, launch the MYSQL server and workbench, create a new connection, add a database schema and tables by running an SQL script file.

Uploaded by

ssuraj.20514
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views15 pages

Run MYSQL Workbench v2

This document provides step-by-step instructions on how to run MYSQL workbench. It details how to log in, launch the MYSQL server and workbench, create a new connection, add a database schema and tables by running an SQL script file.

Uploaded by

ssuraj.20514
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Step-by-step instruction on how to run MYSQL workbench

1. Go to AppsAnyWhere login page, enter your Unihub login and password and click
on “sign in”
https://appsanywhere.mdx.ac.uk/login

2. Lunch MySQL Server


3. Make sure your MYSQL server is running

4. Lunch MySQL Workbench and make sure it is running


5. After lunching, you can see the MySQL Workbench interface as below

6. To add a new connection, click on the “new connection”


7. You will see a pop-up window like this, enter the name of your new connection

8. Click on “store in vault” to store the password (Note: the password of MYSQL server is
1234)
9. You can click on “Test connection” to see the connection works

10. If you see the message below, it means the connection does work, click on “ok” icon on
both message panel and set up connection panel.
11. You should be able to see your new connection in the workspace

12. Double- Click on the connection, you will see the workbench main interface like this. You
can create a new schema (database) by clicking on the icon below
13. Enter the name of your schema and click on “apply”
14. The system will show the SQL code of the action you just took.

15. Click on “apply” and “finish” you will see the new database schema added to your list of
schemas
16. Set the schema as default schema
17. To add some tables to your database, you need to execute the student.sql file. (Download
the file from the week 3 folder of the CST1340 unihub pages). From the “file” tab, click on
the “Open SQL script” and select the student.sql file from your computer.
18. This will load the SQL statements to “create and populate” the database into the text field.

19. Run the student.sql file by clicking on the “Query” tab and click on “Execute (All or
Selection).
20. Click on the “refresh” icon, you should be able to see your tables under the selected
schema.
21. To run your own SQL statements, from the “Query” tab, click on “New Query Tab"
22. Type your SQL statement into the text field and execute by clicking on the run icon.
(“Select * from Student” - print the whole student table)
23. The results from the query will be shown.

You might also like