Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q.1) (25 points) System Variables System variables can be set via the command line. Please write a sequence of statements to: - Set safe updates

Q.1) (25 points) System Variables

System variables can be set via the command line. Please write a sequence of statements to:

- Set safe updates to false for the session.

- Do the following at the global level: o Set the maximum number of connections to 45.

o Set the threshold for long running queries to 7 seconds do this at the global level.

o Set logs to expire when they are more than 3 days old

Write the commands to display the value of the four variables you have updated.

Q.2) (25 points) Managing Users

Write statements that do the following:

- Create users as follows: o Create user daisy with password imadog

o Create user elmo with password imacat

o Create user ap_superuser with password imsuper

o Create user ap_dev with password apdev

o Create user ap_guest with password apuser

- Rename user daisy to have username lazydaisy

- Change password for daisy to be imalazydog

- Drop user elmo

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago