MIS561 Lab 3 in MySQL – Users, Privileges, and Roles – Instant Delivery – Perfect Solution

Lab Price = $15
Please feel free to send us your queries at: support@iqrajavaid.com
Payment methods

Add to Cart

Buy Now

View Cart


Problem Statement

iLab 3: Users, Privileges, and Roles (60 pts.)
iLAB OVERVIEW
Scenario and Summary
MySQL, like many other databases, uses the combination of specific user definitions, privileges, and roles to control access to the data in the database. In turn, it provides various layers of security. When the database is first created, there are several users created for the purpose of not only installing various components of the database, but also to manage and administer the database functionality. You have already used administrative role users in previous labs. In this lab, you will be creating a series of different users, administering various privileges to those users, and exploring how roles help provide additional functionality to the user picture.
It could be achieved in two ways:
1) Using command line to access MySQL directly;
2) Using MySQL Workbench User and Privileges option.

Very important!

Be sure to save all screenshots on Terminal and MySQL Workbench while executing your SQL code when working on the lab.
Deliverables
Grading of the lab assignment will be based on the following.
Part 1: Using Command Line on Terminal
a) Add two new users. Grant super user access to one and read-only access to all tables in the database to the second user (Step 1, Step 2, and Step 3).
To prove the super-user access for User 1, please write query to SELECT, DELETE, INSERT, UPDATE from any created table and show successful results.
To prove the read-only access for User 2, please write query to SELECT, DELETE, INSERT, UPDATE from any created table. SELECT, DELETE, INSERT, UPDATE from any created table (Note: Only SELECT query will be eligible.)
Sample of commands to check access:
Mysql>show databases; – will list database names;
Mysql>use database name; – Access allowed or denied.
Add screenshots to Report.
b) Modify access of the second user by adding update access to Employee table (Step 4). Add screenshots to Report.
To prove the UPDATE privilege, please log in again as User 2 and update COMM column in Employee table.
MYSQL> UPDATE Employee SET COMM = 0.1;
Add screenshots to Report.
Assignment Step Description Points
Step 1 Creating a new user using command line on Terminal 6
Step 2 Finding information on users 6
Step 3 Finding user privileges 6
Step 4 Changing user specifications 6
Part 2: Using MySQL Workbench
Assignment Step Description Points
Step 1 Creating a new user using MySQL Workbench 6
Step 2 Finding information on users 6
Step 3 Finding user privileges 6
Step 4 Changing user specifications. Assigning users to a role 6
Step 5 Listing privileges associated with a role 6
Step 6 Verifying role content 6
Your lab session, showing any queries, create statements, or other SQL code, and the resulting return from the database–should be placed in a single file called yourname_Lab_3.txt to submit to the Dropbox for the Week 3 iLab.

Note!
This is a difficult assignment to grade, so please combine multiple outputs in a single document in the order of execution. Addition of headings for each step helps clarity. Also, please trim out any errors and unnecessary content.
iLAB STEPS
Part 1: Using command line on Terminal
STEP 1: Creating a new user using command line on Terminal
To start, launch Start, choose MySQL 5.6 Command Line Client – Unicode
Enter password: Enter your password, which you’ve created during installation; Press Enter;
We’ll check the existing users by:
Mysql> select Host, User from mysql.user;
Your response will look like this:
HOST USER
—————— ———————–
127.0.0.1 root
Localhost student1
Now, to add new user:
Mysql> CREATE USER ‘username’@’localhost’ IDENTIFIED BY ‘password’;
Press Enter.
Please note: Username and password are in a single quotes. Statement is ended with semicolon.
Please add before and after screenshots to the Report.
STEP 2: Finding information on users
To verify currently defined users, write and execute the query to display the following information:
Mysql> select Host, User from mysql.user;
And the result set will include a newly created user.
HOST USER
—————— —————
127.0.0.1 root
Localhost student1
Localhost student2
Please add Before and After screenshots to the Report.
STEP 3: Finding User Privileges
Creating a user doesn’t give any access to databases.
We have to grant the privileges to the user.
For example, command below grants ‘super user’ privileges:
Mysql> GRANT ALL on *.* TO ‘user name’@‘localhost’ WITH GRANT OPTION;
Press Enter.
Where ALL – all privileges;
*.* – to all databases, all tables;
Mysql>flush privileges;
Press Enter.
Mysql>quit
To remove user:
Mysql>DROP USER ‘user name’@’localhost’; Press Enter.
To show all users and their privileges:
Mysql>select * from mysqluser;
Press Enter.
To show privileges:
Mysql>show grants for ‘username’@’localhost’;
The result set will include grants for user and encrypted password.
Please add Before and After screenshots to the Report.
STEP 4: Changing User Specifications
Command below grants user with UPDATE privilege to Employee table:
Mysql> GRANT UPDATE on *.Employee TO ‘user name’@‘localhost’ WITH GRANT OPTION;
Press Enter.
Where
*.Employee – to all databases, Employee table;
Mysql>flush privileges;
Press Enter.
Mysql>quit
To show grants, log in again and type command:
Mysql>show grants for ‘username’@’localhost’;
The result set will include grants for user and encrypted password.
Please add Before and After screenshots to the Report.

Part 2: Using MySQL Workbench
a) Add two new users. Grant ‘super user’ access to one and read-only access to all tables in the database to the second user (Step 1, Step 2, and Step 3).
To prove the super user access for User 1, please write query to SELECT, DELETE, INSERT, UPDATE from any created table and show successful results.
To prove the read-only access for User 2, please write query to SELECT, DELETE, INSERT, UPDATE from any created table. (Note: Only SELECT query will be eligible. DELETE, INSERT, UPDATE will result in an access denied message.)
Add screenshots to Report.
b) Modify access of the second user by adding update access to Employee table (Step 4).
Add screenshots to Report.
To prove the UPDATE privilege, please log in again as User 2 and update COMM column in Employee table.
MYSQL> UPDATE Employee SET COMM = 0.1;
STEP 1: Creating a new user using MySQL Workbench
To start, launch Start, choose MySQL Workbench, Press Enter.
Choose your schema on Home page to connect to MySQL Server.
Enter password; Press OK.
On the left part of the screen, under the Schema, choose your database schema.
Under the Management, click User and Privileges, Enter password to connect to MYSQL Server.
Screen Administration: User and Privileges allows you to add a new user.
Click Add Account button and fill required information in Login screen.
Repeat for the second user.
Please add screenshots to the Report.

STEP 2: Finding information on users.
STEP 3: Finding user privileges.
STEP 5: Listing privileges associated with a role.
Complete Account Limits, Administrative Roles, and Schema Privileges tabs for User 1 and User 2.
Please add screenshots to the Report.
STEP 4: Changing user specifications. Assigning users to a role.
Add UPDATE privilege on Administrative Roles tab for User 2.
Please add screenshots to the Report.
STEP 6: Verifying role content.
Click on Create a new SQL tab for executing query (located on the left corner below the File tab) to start new Query page.
Please prove super user privilege for user 1 by writing and executing SELECT, INSERT, DELETE, UPDATE statements.
To prove the UPDATE privilege for User 2, log in again as User 2 and update COMM column in Employee table.
UPDATE Employee SET COMM = 0.1;
Please add screenshots to the Report.
This concludes the Lab for Week 3.

Relevant Material
Screenshots
Lab 3: Screenshot2

Lab 3: Screenshot2

Lab 3: Screenshot1

Lab 3: Screenshot1

Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at support@iqrajavaid.com.
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at support@iqrajavaid.com and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at support@iqrajavaid.com.
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on support@iqrajavaid.com
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Payment Details
Lab Price = $15
Please feel free to send us your queries at: support@iqrajavaid.com

Payment methods

Add to Cart

Buy Now

View Cart