Jump to content

[Solved] Correct DB details produce "Database server was not found"


Recommended Posts

At stage 3 of the Prestashop Installation, I enter the DB details which I know to be correct, and I receive the error:

Database server was not found. Please verify the login, password, and database server name fields.


The server is localhost, and I have verified the database name and username. Why can Prestashop not find the server?

This occurs when choosing InnoDB and MyIsam.

If I change the server from localhost to the public hostname I receive the same error.
Link to comment
Share on other sites

Okay, thanks for your try.

I created the database and user account myself, so I know what the connection parameters should be, and I have installed many other web applications which use the same sort of credentials.

They all connect okay to localhost. Prestashop itself recommend using localhost.

The database is MySQL, PHP5 and the GD Library are installed.

Link to comment
Share on other sites

You were also nearly correct. The hosting environment creates:

a database called hostingusername_dbname, and
a MySQL username called hostingusername_sqluser

where you can make anything up after hostingusername_

Link to comment
Share on other sites

You were also nearly correct. The hosting environment creates:

a database called hostingusername_dbname, and
a MySQL username called hostingusername_sqluser

where you can make anything up after hostingusername_

yes many of hosting providers adds hostingusername_ prefix to new user / db names. (Im a hostmaster)
Simply to creating a username "hostingusername_abcd" and a databasename "hostingusername_abcd" may work. It ıt must be fixed.
Good luck
Link to comment
Share on other sites

As I've already said, I have already used the correct format with other web applications, and I have confirmed I am using the correct database, username and password with Prestashop. There is nothing wrong with these values.

Prestashop is the only application I have encountered which can't connect to localhost.

Link to comment
Share on other sites

I created a new username and associated it to the database.

This fixed the problem.

If the cause was an incorrect username/password, Prestashop should say so, not say "cannot connect to database server".

Link to comment
Share on other sites

I created a new username and associated it to the database.

This fixed the problem.

If the cause was an incorrect username/password, Prestashop should say so, not say "cannot connect to database server".

Yes its a BUG and may related with ajax methods. Im glad it fixed.
Regards
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...