hostimul
All articles
Databases

How to create Create or Delete a Database User?

Create a Database User

1. Log into cPanel.

2. Under Databases, click MySQL Databases.

How to create Create or Delete a Database User? — screenshot 1

3. Click Jump to MySQL Users in the top-right corner of the page.

How to create Create or Delete a Database User? — screenshot 2

4. Under Add New User, enter a username.

5. Enter a password in the Password field. (For help generating a strong password, click the Generate Password button.)

6. Retype the password in the Password (Again) field.

7. Click Create User.

How to create Create or Delete a Database User? — screenshot 3

Delete a Database User

1. Navigate to the Current Users section of MySQL Databases.

How to create Create or Delete a Database User? — screenshot 4

2. In the Delete column, click the Delete next to the user you wish to delete.

Define a User's Privileges

Privileges determine how a user is able to interact with the database. For example, privileges will dictate whether or not the user can add and delete information.

Assign Privileges to Database User

1. Log into cPanel.

2. Under Databases, click MySQL Databases.

3. Under Add User to Database, select a user from the User drop-down menu.

How to create Create or Delete a Database User? — screenshot 5

4. From the Database drop-down menu, select the database to which you wish to allow the user access.

5. Click Add.

6. From the MySQL Account Maintenance screen, select the privileges you wish to grant the user or select ALL PRIVILEGES.

How to create Create or Delete a Database User? — screenshot 6

7. Click Make Changes.