CNT 4714: Enterprise Computing Spring 2013 Client User Creation In The MySQL Workbench

Post on 16-Jan-2016

54 views 0 download

description

CNT 4714: Enterprise Computing Spring 2013 Client User Creation In The MySQL Workbench. Instructor : Dr. Mark Llewellyn markl@cs.ucf.edu HEC 236, 407-823-2790 http://www.cs.ucf.edu/courses/cnt4714/spr2013. Department of Electrical Engineering and Computer Science - PowerPoint PPT Presentation

Transcript of CNT 4714: Enterprise Computing Spring 2013 Client User Creation In The MySQL Workbench

CNT 4714: Client Creation In The MySQL Workbench Page 1 Dr. Mark Llewellyn ©

CNT 4714: Enterprise ComputingSpring 2013

Client User Creation In The MySQL Workbench

CNT 4714: Enterprise ComputingSpring 2013

Client User Creation In The MySQL Workbench

Department of Electrical Engineering and Computer ScienceComputer Science DivisionUniversity of Central Florida

Instructor : Dr. Mark Llewellyn markl@cs.ucf.edu

HEC 236, 407-823-2790http://www.cs.ucf.edu/courses/cnt4714/spr2013

CNT 4714: Client Creation In The MySQL Workbench Page 2 Dr. Mark Llewellyn ©

Client User Creation In The MySQL Workbench

• For Project 5 you need to create two new clients for the project5 database and assign them specific privileges on the database.

• This set of slides steps you through that process using the MySQL Workbench.

• This can also be done via the MySQL command line client, however, it requires issuing specific GRANT commands and while providing finer grained privilege detail, goes a bit beyond what we need for this project.

CNT 4714: Client Creation In The MySQL Workbench Page 3 Dr. Mark Llewellyn ©

Start the Workbench and select Server

Administration from the right side of the

window.

CNT 4714: Client Creation In The MySQL Workbench Page 4 Dr. Mark Llewellyn ©

Server Administration default screen is displaying the server status for the

server you are currently connected to.

From this screen, select Users and Privileges.

CNT 4714: Client Creation In The MySQL Workbench Page 5 Dr. Mark Llewellyn ©

Current user accounts are displayed here. Your screen will probably only

have the root user at this point.

Click the Add Account button

CNT 4714: Client Creation In The MySQL Workbench Page 6 Dr. Mark Llewellyn ©

Enter the information for the new user where the name newuser is currently

displayed.

CNT 4714: Client Creation In The MySQL Workbench Page 7 Dr. Mark Llewellyn ©

After entering the new user’s information. Click the Apply button

CNT 4714: Client Creation In The MySQL Workbench Page 8 Dr. Mark Llewellyn ©

After clicking the Apply button the new user is now confirmed.

CNT 4714: Client Creation In The MySQL Workbench Page 9 Dr. Mark Llewellyn ©

Select the Schema Privileges tab.

CNT 4714: Client Creation In The MySQL Workbench Page 10 Dr. Mark Llewellyn ©

Select the newly created client2

CNT 4714: Client Creation In The MySQL Workbench Page 11 Dr. Mark Llewellyn ©

With the client2 user selected, the Add entry button will be active, so click it.

CNT 4714: Client Creation In The MySQL Workbench Page 12 Dr. Mark Llewellyn ©

When you click the Add entry button, this dialog box will

appear as shown.

CNT 4714: Client Creation In The MySQL Workbench Page 13 Dr. Mark Llewellyn ©

Select the selected host option for localhost in the Host area, then select the Selected Schema in the Schema area. This will

highlight the various databases on the server. You’ll select the Project5

database (I’m using project4 database here). Then click OK and go to the next page.

CNT 4714: Client Creation In The MySQL Workbench Page 14 Dr. Mark Llewellyn ©

For project 5, the client2 user has only select and update privileges on the project 5 database, so check only

those two boxes. Then click Save.

CNT 4714: Client Creation In The MySQL Workbench Page 15 Dr. Mark Llewellyn ©

To test your work, go back to the main workbench screen and open a connection to start querying, but login as

client2.

CNT 4714: Client Creation In The MySQL Workbench Page 16 Dr. Mark Llewellyn ©

Issuing a query that client2 has the privilege to execute.

Results are displayed correctly.

CNT 4714: Client Creation In The MySQL Workbench Page 17 Dr. Mark Llewellyn ©

Issuing a query that client2 does not have the privilege to

execute. Results show an error.