Run MYSQL Workbench v2
Run MYSQL Workbench v2
1. Go to AppsAnyWhere login page, enter your Unihub login and password and click
on “sign in”
https://appsanywhere.mdx.ac.uk/login
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.