“Cannot connect to the database” errors

- Make sure that after you created your database and database user that you didn’t forget to ADD the database user to the database (at the bottom of the “Databases” section in Control Panel > MySQL Manager you’ll see two drop down menus “User:” and “DB:” followed by an “Add User to DB” button).

- Confirm that you entered localhost as the database host/server name and if applicable that you specified mysql for the database server type.

- Make sure that you specified the correct database and database user names. Besides noting the fact that these values are cAsE sEnSiTiVe be aware that your account userid (usually the first 7 characters of your domain name) is added with an underscore as a prefix to both your database and database user names (userid_dbname rather than just dbname and userid_dbuser instead of just dbuser).

- As far as the password make sure that you use the password that you assigned to your database user in MySQL Manager (NOT your account password)

EXAMPLE:

- if your domain name is “testserver.com
- if your account userid is “testser“)
- if you created a database named “phpbb2
- if you created a database user named “dummy
- if you assigned user bozo the password “doh
- if you added dummy to the phpbb2 database

…then you would enter the following logon/connection info:

database server type = mysql
server name = localhost
database name = testser_phpbb2
database user name = testser_dummy
database user password = doh

  • 45 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

Manage Database Roles

Solution Database roles are conceptually completely separate from operating system users....

Manage Tablespaces

Tablespaces in PostgreSQL allow database administrators to define locations in the file system...

ColdFusion DSN parameters are not updated

SYMPTOMS New CF DSN records are created.  Even the set of parameters is tried to be updated...

Finding what packages are installed on a Linux system

For distributions that use RPM format packages, use the command: $ rpm -qa You may want to pipe...

What platforms does Linux support?

Linux runs on almost every general-purpose computer made in the last 10 years. It runs on systems...