cnt 4714: enterprise computing spring 2013 client user creation in the mysql workbench

17
CNT 4714: Client Creation In The MySQL Workbench Page 1 Dr. Mark Llewellyn © CNT 4714: Enterprise Computing Spring 2013 Client User Creation In The MySQL Workbench Department of Electrical Engineering and Computer Science Computer Science Division University of Central Florida Instructor : Dr. Mark Llewellyn [email protected] HEC 236, 407-823-2790 http://www.cs.ucf.edu/courses/ cnt4714/spr2013

Upload: ira

Post on 16-Jan-2016

54 views

Category:

Documents


0 download

DESCRIPTION

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

TRANSCRIPT

Page 1: 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 [email protected]

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

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

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.

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

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.

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

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.

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

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

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

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.

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

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

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

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

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

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

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

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

Select the Schema Privileges tab.

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

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

Select the newly created client2

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.