Managing MySQL Users: Command Line vs. MySQL Workbench
A solved assignment comparing MySQL user management techniques via CLI and MySQL Workbench.
Christopher Lee
Contributor
4.6
59
7 months ago
Preview (4 of 11 Pages)
100%
Purchase to unlock
Page 1
Loading page ...
1Part 1:Using commandlineon TerminalHow can you create and manage MySQL users using both command line (Terminal) and MySQL Workbench?Explain the steps involved in creating new users, assigning privileges, and modifying userspecifications, aswell as how to verify user information and privileges in both interfaces. Include specific commands and stepsfor each method, and discuss any differences between the two approaches. (Word count: 300-350 words)STEP 1:Creating a new user using command line on TerminalTo start,launchStart,chooseMySQL 5.6 Command Line Client–UnicodeEnter password: Enter your password,which you’ve created during installation;Press Enter;We’llcheck the existing users by:Mysql> select Host, User from mysql.user;Your response will look like this:HOSTUSER-----------------------------------------127.0.0.1rootLocalhoststudent1Now, to add new user:Mysql> CREATEUSER ‘username’@’localhost’ IDENTIFIED BY ‘password’;Press Enter.Please note:Username and password are in a single quotes.Statement is ended with semicolon.
Page 2
Page 3
Page 4
Preview Mode
This document has 11 pages. Sign in to access the full document!