How to Create and Assign a Database User
Create A New Database User
- In cPanel, select "MySQL Databases".
- Find the "MySQL Users" section.
- Enter a username under "Add New User". Usernames are maximum 7 characters.
- Enter a password in the "Password" field. You can also use the "Generate Password" option to let cPanel generate a strong password for you.
- Click "Create User".
Assigning A User To A Database
- Using the "User" dropdown menu under the "Add User To Database" section, select your newly created user.
- From the "Database" dropdown menu, choose the database you wish to assign the user to.
- Click "Add".
- Navigate to the MySQL Account Maintenance screen and choose which privileges you wish to assign to the user.
- Click "Make Changes"
You will now need to update the site's configuration code to reflect the changes in database username and password.