Files & Databases

Creating a database user and granting access

A database on its own cannot be used until a user is attached to it. Here is the full process in the DirhamHost panel:

  1. Open MySQL Databases.
  2. Under Add New User, enter a username and a strong password, then click Create User.
  3. Scroll to Add User To Database, select your user and your database, then click Add.
  4. On the privileges screen, tick All Privileges and save.

For a normal website application you should grant All Privileges so it can create tables and read/write data. For a read-only reporting connection you might grant only SELECT.

Remember:

If your application reports Access denied for user, it usually means the user was created but not added to the database, or the password does not match. Recheck step 3. Support is available 24/7 at support@dirhamaday.ae.

Still need a hand? Our UAE-based team is here 24/7.

Related articles

Using the file manager in DirhamHostUploading files to your websiteCreating an FTP accountFTP and SFTP settings and portsConnecting to your site with FileZilla