Site transfer | Sololearn: Learn to code for FREE!

+3

Site transfer

Anybody here who can help me with a question about site transfer to another server? Concerning the database?

8/8/2018 6:10:07 PM

Fay Stam

6 Answers

New Answer

+3

If you are using phpMyAmin, you can export the database and import it again on your new server as described here: https://www.techrepublic.com/blog/smb-technologist/import-and-export-databases-using-phpmyadmin/ You also need to change the login data of the database in the code if it is different from your old one. I think you can copy paste the rest of the code, but you might need to change a few links.

+7

If your website is on a VPS I think transfering is easier than shared hosting. For example in sql server you can even detach the whole database from server and move the .mdf and log files to another server and then attach it again on the new server. But in shared hosting you have a control panel and you don't have direct access to server so look at the control panel and check db options. For example maybe you can download db or get a full back-up. If you want to transfer the website to a new server on the same network of current host provider I think it's not a problem at all, they do that for you to keep you as a customer. In the worst situation you may contact to host provider.

+2

I restored the database, i changed the sql settings( database name as it came after restore,new username&password) on the configuration file. That’s all, right?

+2

I think so. Just try it and you'll see whether it works.

+1

Moritz Vogel