Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:16:11 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: how to restore site on new server  (Read 468 times)
tifo

Offline Offline

Posts: 26


« on: March 13, 2008, 07:09:02 PM »

I need help in restoring a site to a new server as i moved hosts.

I have uploaded all the files by FTP and the database by phpmyadmin. So the files are in my webspace and the tables are in the database. I have changed the config.php file with the new settings.

The site does not work, i get the message "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"

Also, where is the actual content for the pages kept in the database as i would like to extract this information and use it on a new installation, which may be easier than getting the old site to work.

Thanks.
Logged
Luckyluke

Offline Offline

Posts: 555



« Reply #1 on: March 13, 2008, 07:13:08 PM »

Hoi,

Did you perform every step like in the HELP pages? 

Luc
Logged
tifo

Offline Offline

Posts: 26


« Reply #2 on: March 13, 2008, 08:19:28 PM »

i'll have a look.

i did it the way i said above, not a new installation.

uploaded old files to webspace, put tables into database from backup, changed config file with new database settings ....
Logged
tifo

Offline Offline

Posts: 26


« Reply #3 on: March 13, 2008, 08:29:47 PM »

new installation gives the same message :

Database host name, username and/or password incorrect. MySQL Error:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Logged
Luckyluke

Offline Offline

Posts: 555



« Reply #4 on: March 13, 2008, 08:58:36 PM »

Maybe the name and password of the database are different from the old one.
Dit you change everything in the file config.php in the root of your WB site?

Something like:

define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_NAME', 'databasename');

take a look...

Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!