On Sun, Mar 03, 2002 at 02:55:24PM +0200, Liivar Paas wrote: > Greetings, > I brought new server and I'd like to copy old database to new server. MySQL > 3.23.41 RH7.2 both machines. > > I copyed /var/lib/mysql to new machine /var/lib/mysql and seems that > MySQL is working I can use databases and insert values into > tables. But is just copying right thing to do? Is there any easyest > way to do it?
If the server is up, you'll want to do this: FLUSH TABLES WITH READ LOCK; <copy stuff> UNLOCK TABLES To ensure that you get a good copy. Jeremy -- Jeremy D. Zawodny, <[EMAIL PROTECTED]> Technical Yahoo - Yahoo Finance Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 685-5936 MySQL 3.23.47-max: up 24 days, processed 796,144,228 queries (380/sec. avg) --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php