Knowledgebase
How to Create a Database Username in cPanel? Print this Article
Add a MySQL user
After you create a database, add users to the database and configure their privileges.
- You must create MySQL user accounts separately from mail and web administrator accounts.
- You must create a user before you can add the user to an existing database.
To create a new user account, perform the following steps:
-
Enter a username in the Username text box.
Important:To learn more about database username limits, click your database type:
MySQLMySQL limits the database username to 16 characters. The system includes the database prefix (the first eight characters of the cPanel account’s username and an underscore character) in the character count for the username.
For example:
- A MySQL database with the
db_
prefix allows usernames that contain up to 13 characters. - A MySQL database with the
example_
prefix allows usernames that contain up to eight characters.
MariaDBMariaDB limits the database username to 47 characters. The system includes the database prefix (all of the cPanel account’s username and an underscore character) in the character count for the username.
For example:
- A MariaDB database with the
db_
prefix allows usernames that contain up to 44 characters. - A MariaDB database with the
example_
prefix allows usernames that contain up to 39 characters.
- A MySQL database with the
-
Enter and confirm the new password in the appropriate text boxes.
Note:- The system evaluates the password that you enter on a scale of 100 points.
0
indicates a weak password, while100
indicates a very secure password. - Some web hosts require a minimum password strength. A green Strength meter indicates that the password is equal to or greater than the required password strength.
- Click Password Generator to generate a strong password. For more information, read our Password & Security documentation.
- The system evaluates the password that you enter on a scale of 100 points.
-
Click Create User.
-
Click Go Back to return to the main interface.
Was this answer helpful?
Related Articles
1. Log into your cPanel account.2. In the "Databases" section, click on "phpMyAdmin" Icon. 3. In...
1. Log into your cPanel account.2. In the "Databases" section, click on "phpMyAdmin" Icon. 3. In...
1. Log into your cPanel account.2. In the "Databases" section, click on "phpMyAdmin" Icon. 3. In...
1. Log into your cPanel account.2. In the "Databases" section, click on "phpMyAdmin" Icon. 3. In...
1. Log into your cPanel account.2. In the "Databases" section, click on "phpMyAdmin" Icon. 3. In...