Author Topic: error after changing server  (Read 6817 times)

0 Members and 1 Guest are viewing this topic.

Offline stefano54

  • Pre-Newbie
  • Posts: 7
    • View Profile
error after changing server
« on: July 02, 2014, 11:57:01 AM »
I moved my site to another server
I followed the steps as mentioned in another post
I changed the database parameters

Now on the new server I find this message

  "An unexpected error occured. Please try again later."

which is the file to check?

   new address   naturfoto. esy. es/

Thank you
stefano


 the message from key ALT + click on red message is:

An unexpected error occured. Please try again later.

Could not connect to the database server (mysql.hostinger.it, **********).

« Last Edit: July 02, 2014, 05:48:05 PM by Rembrandt »

Rembrandt

  • Guest
Re: error after changing server
« Reply #1 on: July 02, 2014, 05:06:38 PM »
Welcome to the Forum!
.....
which is the file to check?
.....

root/config.php

mfg Andi

Offline stefano54

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: error after changing server
« Reply #2 on: July 02, 2014, 05:31:13 PM »
Welcome to the Forum!
.....
which is the file to check?
.....

root/config.php

mfg Andi

Ok

the config.php file located in the root
this is the content

 *************************************************************************/

date_default_timezone_set("Europe/Berlin");

$db_servertype = 'mysql';
$db_host = 'mysql.hostinger.it';
$db_name = '***********';
$db_user = '************';
$db_password = '*******';

$table_prefix = '4images_';

define("4IMAGES_ACTIVE", 1);


the problem is in the server?

Tank You
Stefano
« Last Edit: July 02, 2014, 05:47:40 PM by Rembrandt »

Rembrandt

  • Guest
Re: error after changing server
« Reply #3 on: July 02, 2014, 05:50:57 PM »
....
$db_host = 'mysql.hostinger.it';
......
is this correct,are you are sure?

test this:

$db_host 
'localhost';

Offline stefano54

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: error after changing server
« Reply #4 on: July 02, 2014, 06:17:38 PM »
I have changed in  localhost

now the error is

An unexpected error occured. Please try again later.

Could not connect to the database server (localhost, u234698505_stef)

Rembrandt

  • Guest
Re: error after changing server
« Reply #5 on: July 02, 2014, 08:32:38 PM »
fact is, your access data to your mysql database server is not correct.
maybe, ask in the Forum from your Provider.

mfg Andi