Welcome to WebmasterWorld Guest from 54.147.44.93

Forum Moderators: phranque

Message Too Old, No Replies

Moving DB site from one server to another

What's the latest thinking? Any new tools or tips?

     

weeks

1:39 pm on Mar 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did a search on WW on this and a lot of what I found was dated, so might I ask:

In 2008, what issues today do we need to be concerned about moving a MySQL (or a MS SQL database) from one leased server to another? We're getting what seems to be some half-baked advice.

rocknbil

2:36 pm on Mar 17, 2008 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I've found two.

The first is the mysql version. Generally, this doesn't create many hiccups but you can sometimes get incorrect results moving up to a later version if you coding uses deprecated methods. Sorry, my examples are half -baked and can't recall a specific one. :-)

The second is encoding. For example, if you use the mysql encode() or decode() functions and your original tables are set for latin1, and the default for your new database is utf-8, your queries may not return correct values. The solution is to update the tables to latin1 collation.

Other than that, using the mysql command "source" will repopulate a DB from a mysqldump file in no time flat.

weeks

5:25 pm on Mar 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We have been told to watch out for problems with some of our "columns" or tables vis a vis PHP, that we might have to copy and paste. But I can't figure out why that would be. Anyone have a clue what this is about?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month