Jump to content

Link to database cannot be established


Recommended Posts

Hi.

 

Well all is in the title.

Here is some explications.

 

I create my shop in local, and i just bought an ovh server.

I wanted to make it online.

I put my file /prestashop with the ftp in the file /www

I added the database on the server.

I changed the setting in settings.inc.php as it's said, well i think but it's where i think there is a mistake.

 

So what ever i change there is still "Link to database cannot be established" when i go to www.myWebsite.eu/prestashop

 

Any idea about what i did wrong ?

 

here the settings.inc.php

<?php
define('__PS_BASE_URI__', 'Mywebsite.eu/prestashop/');
define('_MEDIA_SERVER_1_', '');
define('_MEDIA_SERVER_2_', '');
define('_MEDIA_SERVER_3_', '');
define('_PS_CACHING_SYSTEM_', 'MCached');
define('_PS_CACHE_ENABLED_', '0');
define('_THEME_NAME_', 'theme_v1');
define('_DB_NAME_', 'nameBD');
define('_MYSQL_ENGINE_', 'MyIASM');
define('_DB_SERVER_', 'mysql51-65.perso');
define('_DB_USER_', 'userName');
define('_DB_PREFIX_', 'ps_');
define('_DB_PASSWD_', '*******');
define('_DB_TYPE_', 'MySQL');
define('_PS_VERSION_', '1.4.7.0');
?>

 

Thanks for reading my post, hope you got answer for me.

Link to comment
Share on other sites

it's myWebsite or Mywebsite ?

 

 

for your database, important are :

 

define('_DB_NAME_', 'nameBD');

define('_DB_SERVER_', 'mysql51-65.perso');

define('_DB_USER_', 'userName');

define('_DB_PREFIX_', 'ps_');

define('_DB_PASSWD_', '*******');

Link to comment
Share on other sites

Thanks for your answer.

Actually the website name is not mywebsite, i putted it to make an usual example ^^

Its blancdirect.eu. So for the _PS_BASE_URI_ its 'blancdirect.eu/prestashop/'

 

Yes i changed those informations with what ovh gave me.

But it doen't change anything.

Question : does _DB_PREFIX_ is important because I didn't changed it.

 

By the way sorry for my bad english it's not my native language.

Link to comment
Share on other sites

i'm french, EN not my native language too.

 

_DB_PREFIX_ : yes it is important to find the name of tables

 

when you want to access your data in the database by 1 & 1, you enter the same data:

name database: nameBD

server: mysql51-65.perso

User: userName

password: your password for the database

 

attention to uppercase

Link to comment
Share on other sites

On pourrait continuer en français alors mais ce n'est pas le bon forum donc :

 

Well i posted it on the fr forum but i got an answer here before :)

 

Hum i think i'm gonna shoot myself, I did a mistake, an horrible one I wrote "preso" instead of "perso" ... Poor me

 

And now i got an other probleme.

The message "link to database cannot be established" is gone, i got an other on e "Bad subDomain SQL query".

 

i'm looking for an answer. If you know how to resolve it i'll say thanks a lot !

 

EDIT : it's, I found why.

I make a lot of thinks for testing, and forgot that I deleted all the database.

 

Thanks for taking your time coeos.pro, maybe see you on fr forum =)

Edited by CaZz (see edit history)
Link to comment
Share on other sites

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...