Re: Moving a MySQL database
From: Kirk Strauser (kirk_at_strauser.com)
Date: 08/22/03
- Previous message: Paul Brundage: "Virus Found in message "Your application""
- In reply to: Roberto Sanchez: "Moving a MySQL database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: debian-user@lists.debian.org Date: Fri, 22 Aug 2003 10:56:24 -0500
At 2003-08-22T15:03:33Z, Roberto Sanchez <rcsanchez97@yahoo.es> writes:
> I have a MySQL database residing on a RH9 server. I have started building
> a Debian server running woody to replace it. Is there an easy way to grab
> the whole database and move it over as is?
1. Type: `mysqldump -u root -p -A --opt > file.sql'.
2. Load the new server with: `mysql < file.sql'
3. Connect to the new server and type: `flush privileges' to load the user
tables that you imported in the previous step.
4. Sit back and smile.
-- Kirk Strauser
-- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- application/pgp-signature attachment: stored
- Previous message: Paul Brundage: "Virus Found in message "Your application""
- In reply to: Roberto Sanchez: "Moving a MySQL database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|