MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:July 27 2004 2:11am
Subject:Re: transferring MySQL db from RedHat to Debian
View as plain text  
At 17:39 -0700 7/26/04, Shannon R. wrote:
>hello list!
>i'll be moving from a RedHat server to a Debian server very soon. 
>despite the different linux distributions, is it ok to transfer my 
>entire mysql database by just copying everything in /var/lib/mysql 
>of the RedHat system to the Debian system? has anyone tried this 

I'd expect it to work.

>the reason why i don't want to do the database transfer using data 
>generated by mysqldump is because i want all the auto-generated 
>record_ids to stay the same in the new system.

I'd expect this to work, too.  mysqldump will dump the values that those
auto-generated IDs currently have, and they won't change when you reload
them.  AUTO_INCREMENT values aren't generated automatically unless you
store NULL or zero into them, which won't be the case with mysqldump
files.  (I assume here that you didn't do something unsupported like
change the values to negative numbers or zeros after generating the IDs.)

Paul DuBois, MySQL Documentation Team
Madison, Wisconsin, USA
transferring MySQL db from RedHat to DebianShannon R.27 Jul
  • Re: transferring MySQL db from RedHat to DebianPaul DuBois27 Jul
  • Re: transferring MySQL db from RedHat to DebianEgor Egorov27 Jul
  • Spamcease ?Alexander Newald27 Jul
    • Re: Spamcease ?Duncan Hill27 Jul
    • Re: Spamcease ?Michael Dykman27 Jul
      • Re: Spamcease ?m i l e s27 Jul