Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
_Version
_Version

(Home >> Databases >> MySQL Database Wizard)

Overview

This wizard guides you through the setup of a MySQL® database, user accounts, and user privileges. We recommend that you use this wizard to create your first database and user. 

To create additional databases or users, you can also use the MySQL Databases interface (Home >> Databases >> MySQL Databases).

Set up a database

To set up a database, perform the following steps:

  1. In the New Database text box, enter a name for the database and click Next Step.

    Note
    titleNote:

    The system limits the database name to 64 characters. However, due to the method that cPanel & WHM uses to store MySQL database names, each underscore character requires two characters of that limit. Therefore, if your hosting provider enabled database prefixing, the maximum length of the database name is 63 characters, which includes both the database prefix and the underscore character. Each additional underscore requires another two characters of that limit.

  2. In the Username text box, enter a name for the user who you wish to allow to manage the database.
    Include Page
    _MySQL Username Limit
    _MySQL Username Limit
  3. Include Page
    _Enter and confirm password and Notes
    _Enter and confirm password and Notes

  4. Click Create User.
  5. Select the checkboxes that correspond to the privileges that you want to grant the user, or select ALL PRIVILEGES.
  6.  Click Next Step.

The system displays a message that states that you successfully set up the database and user account.

Panel
borderColor#d9d9d9
bgColor#F2F2F2
borderStylesolid

In This Document

Toc no bullet
maxLevel2
excludeDocument|Hosting

Related Documentation

Content by Label
showLabelsfalse
max5
showSpacefalse
sortmodified
operatorAND
cqllabel in ("mysql","databases") and label = "cpanel" and space = currentSpace()
labelsapiguide

For Hosting Providers

Content by Label
showLabelsfalse
max5
showSpacefalse
sortmodified
operatorAND
cqllabel in ("mysql","databases") and label = "whm" and space in (currentSpace(),"CKB","EA","EA4")
labelsapiguide

Additional options

After you complete the database setup process, select one of the following options:

  • Add another database — Click to return to the start of the MySQL Database Wizard interface to add more databases.
  • Add another MySQL Databases User — Click to open the  MySQL Databases  interface (Home >> Databases >> MySQL Databases) to create additional user accounts and assign them to a database.
  • Return to Home — Click to return to the cPanel Home interface.

 

Note
titleNote:

When you use the MySQL Database Wizard interface to add a user and a database, the system automatically grants the user access to the database. You do not need to use the Add User to Database feature in the MySQL Databases interface (Home >> Databases >> MySQL Databases).