Could not connect to the MariaDB - MySQL database

You will want to verify you are using the correct database name, username and password.

All databases and username will have your username appended to the beginning to prevent your information from being overwritten by other users using the same names. Because of this you will also want to keep database and usernames short as some applications have problems with longer names.

Keep passwords simple to alpha-numeric. Don't include dots and special characters as some apps have problems with this.

Make sure you have added the username to the database and the correct permissions were selected before adding. This is typically the "all" setting.

Hostname will always be "localhost" unless you are trying to connect to the database remotely using an application such as MySQL Navigator.

When connecting remotely MariaDB / MySQL is accessible via the standard port of 3306.

  • 578 Users Found This Useful

Was this answer helpful?

Related Articles

Running a PHP file with a cron job

To run a PHP file from cron, use the "cron jobs" section of your control panel. Use the following...

How do I add a user to a MariaDB & MySQL database?

In the MariaDB / MySQL Database section of your hosting control panel, after creating a database...

Increase PHP Memory

Fatal error: Allowed memory size of xxxxxxxxx bytes exhausted (tried to allocate 1064256 bytes)....

403 Forbidden error with Drupal after install.

Remove the following lines from the .htaccess file... Options -Indexes Options FollowSymLinks...

Strict Standards: Non-static method JLoader::register() should not be called statically in...

This error indicates your script is using out-dated PHP commands. It is best to update your...