Create User (MySQL)

Location: Databases/MySQL Databases

 

There are two primary steps when creating a MySQL user. The first step is to create a username and password combination for the user. The second step is to add the user to the database you want the user to access.

 

1. In the "Add New User" section under "MySQL Users," enter the username and password you want to use for this database in the "Username" and "Password" text boxes, respectively.

 

Notes: There is a seven character limit on the username. In addition, the "Password Strength" indicator will tell you if your password is very weak to very strong according to what you type in the "Password" text box. The more unique characters you use, the stronger your password will be according to the "Password Strength" indicator.

 

2. Retype your password in the "Password (Again)" text box.

 

3. Next, click on the "Create User" button.

 

4. You should see the following statement:

 

"Added USERNAME with the password PASSWORD."

 

5. Click on the "Go Back" link.

 

6. Find the "Add User To Database" section. Select the user you created in Step 6 above from the "User" drop down menu. Then select the database you want to add the user to from the "Database" drop down menu.

 

7. Next, click on the "Submit" button.

 

8. When the page loads you will see a two-column table. The top of the table provides a checkbox option "ALL PRIVILEGES" allowing you to create the database with all privileges, otherwise you can check each of the items in the two columns that you want to allow for your new database. The options include:

 

 

Note: Typically you may want to check the "All Privileges" option unless you want specific control over the user you are creating for this database.

 

9. Assuming you have either checked the "All Privileges" option or a combination of the options in the two columns, continue the wizard by clicking on the "Make Changes" button.

 

10. You should see the following statement:

 

"User USERNAME was added to the database DATABASE."

 

11. Click on the "Go Back" link.

 

12. You should now see the user you created in Step 1 above in the "Users" column.