Need help cloning a site - please help!

Hi,

I have a site that I made for some people a while ago. I need to clone the site to a new server.

I downloaded all the latest db tables and also the entire site files.

I setup a new database via my sql databases on the new server. I edited the sql file as instructed in a guide to change the web address to my new address - I changed the domain name to mynewdomain.com/newsite (in a sub directory)

I then uploaded all the files to this sub directory on the new server and tried to link the two by editing the wp-config file.

I changed in the wp-confifg file : define(‘DB_NAME’, ‘my_sql_db_name’);

However I am having no luck and I have the message in my browser:
“Error establishing a database connection”

If anyone can please help me and advise where I am going wrong I would be very very grateful.

Thanks

Did you make sure to change the database username and password?

Hi,

I made a new SQL user for the database and I have changed the part in wp-config file which sits in the wordpress file directory to have the same info:

/** MySQL database username */
define(‘DB_USER’, ‘admin’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘password22’);

Am I missing something else?

:confused:

Is the database server same??.. i,e localhost…