How To Create A MySQL Database And Database User In Cpanel

Create a MySQL Database

  1. Log in to cPanel: Access your control panel using your cPanel username and password.
  2. Locate Database Tools: Scroll down to the Databases section and click on the MySQL® Databases icon.
  3. In Create New Database: Find the section labeled Create New Database. Enter a name for your database in the text box (e.g., site_db). Click the Create Database button.

Create a User

  1. Locate MySQL Users: From the main MySQL® Databases page, scroll down until you reach the section labeled MySQL Users (specifically under Add New User).
  2. Enter Credentials: * Username: Enter a name for your database user.
  • Password: Enter a strong password (or use the "Password Generator").
Finalize: Click the Create User button.

Once created, you will see a success message confirming the user has been added to the system. Click Go Back to return to the database management screen.

Link User to Database

  1. Locate the Connection Section: On the MySQL® Databases page, scroll down to the section titled Add User To Database.
  2. Select User and Database:
  • From the User dropdown menu, select the username you just created.
  • From the Database dropdown menu, select your new database.
  • Click the Add button.
Manage Privileges: On the next screen, tick the box for ALL PRIVILEGES. This ensures the user has full access to manage the database. Save Changes: Scroll to the bottom and click the Make Changes button.

Your database is now fully configured and ready to be used by your application or website.



Manage User Privileges

If you ever need to update or verify the access levels for a user, follow these steps:

  1. Locate Current Databases: From the MySQL® Databases page, scroll down to the Current Databases section.
  2. Select the User: * Find the specific database you wish to modify.
  • In the Privileged Users column, click on the Username you want to update.
Update Permissions: On the "Manage User Privileges" screen, tick the box next to ALL PRIVILEGES to grant full access, or select specific permissions as required for your project. Save: Click the Make Changes button at the bottom of the page.

Your user permissions have now been updated.

 

 

  • 0 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

How to change Email Password

Method 1: Changing Your Email Password via cPanel This method is best if you are the account...

How to change Webzim Account Password

If you cannot remember your password for the Webzim Clientzone (where you manage your billing and...

How to change Cpanel Password

Note: You can only change your password through the dashboard if you know your current...

Adding Email Signatures

Text Signatures - On Desktop Thunderbird 1. Open Thunderbird: Launch the Thunderbird application...

Changing PHP Version And Increasing Memory Limit

Scroll down to Software Changing PHP version Find click on Select PHP Version Change current...