Nexcess Logo

How to create MySQL database user accounts in SiteWorx

Knowledge Base Home

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.
September 11, 2019

How Nexcess clients on physical (non-cloud) servers can create a new MySQL database user account for a MySQL database.

What you need

  • A Nexcess account on a physical (non-cloud) server. If you are a Nexcess Cloud client, instead contact our 24/7 support team by email or through the Client Portal for assistance.

  • Login information for your SiteWorx control panel account.
  • If you are a secondary user on another person's SiteWorx account, your user account must be have permission to create MySQL databases.

  • If you want a SiteWorx user other than yourself to manage databases through your SiteWorx account, you must first configure a secondary SiteWorx user account, assign the user to a database, and assign the appropriate permissions as directed below.

1: Create the user 

As an alternative means of user creation, you can create the user during the creation of the database; see How to create MySQL databases with SiteWorx.

  1. From the SiteWorx main menu, click Hosting Features > MySQL > Users.

  2. In the MySQL Database User Management section, enter a username and password:

    ATTENTION: SiteWorx automatically prefixes the database username with the first eight characters of your domain name. For example, for user jdoe at example.com, the name will appear as examplec_jdoe. If you are configuring an application that will be using one of your MySQL databases, specify the complete database and database username.

    1. For the password, either enter your own or click Generate to have SiteWorx create one for you. If you did not choose to generate a password, you must enter the password again in the Confirm Password field.

    2. Note of the password; you will reference it when preparing applications to use this database.

  3. Click Add. The new user will appear in the Existing MySQL User section below.

  4. Proceed to the next section.

2: Assign the user to a database

  1. In the SiteWorx main menu, select Hosting Options > MySQL > Databases.

  2. In the Existing Databases section, locate the desired database and select Manage Users.

  3. From the User drop-down menu, select the appropriate user.

  4. By default, all permission check boxes are selected. To remove a permission, clear the corresponding check box. Refer to the Table 1 in the Permissions section below for more information.

  5. In the When Connecting From field, either leave it empty to allow the user to connect from any hostname, or specify the hostname the user must connect from.  

  6. Click Add.

List of available permissions

The following table defines the available permissions for application to a MySQL user. The order in which the permissions are listed reflects the order in which they are provided on the SiteWorx MySQL Database Management menu.

User PermissionOperations Allowed
SelectSelect rows from tables in the database
CreateCreate new databases or tables
AlterAlter the table structure
Show ViewShow views
InsertInsert rows into tables
DropDrop (remove) existing databases and tables. If this permission is enabled for a user, the user will be able to drop the database in which the MySQL access privileges are stored .
Create Temporary Table Create temporary tables
Create RoutineCreate stored routines (procedures and functions)
UpdateUpdate database table rows/data
ReferencesNot currently used
Lock TablesLock tables in the database
Alter RoutineModify (alter) stored routines
DeleteDelete data/rows in database tables
IndexCreate or remove indexes
Create ViewCreate a new view
ExecuteExecute stored routines (procedures and functions)


For 24-hour assistance any day of the year, contact our support team by email or through your Client Portal.

Jason Dobry
We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.