FAQ   Search   Register   Login

CIOL Network sites



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: offline mysql backup
PostPosted: Thu Mar 25, 2010 9:46 pm 
Offline
Brown belt

Joined: Fri Mar 19, 2004 2:51 pm
Posts: 16
Hi all

i am running a mysql database(free version ) which came with centOS. and due to HDD error the i am unable to boot the machine. i need the data which there in the mysql server.

i have check the filesystem by attaching it to another machine. the filesystem which is having mysql is intact. could anyone let me know how i can i export or move the mysql data to new system.

thanks in advance
nrao


Top
 Profile  
 
 Post subject: Re: offline mysql backup
PostPosted: Thu Jul 01, 2010 2:52 pm 
Offline
Brown belt

Joined: Tue Aug 16, 2005 12:04 pm
Posts: 16
Location: Pune
Hi,
suppose your database name is "abc" in your old machine then
goto /var/lib/mysql folder, you will see folder name same as your database in our case "abc"

just copy that folder from your old machine to new one in /var/lib/mysql folder
and restart the mysql server

then
mysql -u root -p

mysql>show databases;
you will see your database along with data

mysql> show tables;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group