All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SQL DATABASE need to recover - cmd line
PostPosted: May 30th, 2009, 20:03 
Offline
User avatar

Joined: December 24th, 2007, 16:08
Posts: 1422
Location: EUROPE
Hi to all,

I have copy a disk with some SQL databases and could copy about 98% off the sectors for the database.
But is missing 2% off that sectors, anyone experience in SQL server know the command line to repair the database?

Please PM me


Thanks
ZeBong

_________________
ZeBong
" что случилось в России - останется в России "
" Россия еще раз"


Top
 Profile  
 
 Post subject: Re: SQL DATABASE need to recover - cmd line
PostPosted: May 31st, 2009, 7:07 
Offline
User avatar

Joined: March 28th, 2008, 7:52
Posts: 1479
Location: Europe, Hungary
Hi,

It depends on sql type, but for mysql the procedure looks like this:
USE [database]
REPAIR TABLE [table]

If it is failing, try outside of the server with myisamchk.

http://dev.mysql.com/doc/refman/5.0/en/ ... table.html

Always make a backup before trying to repair the table!

Janos


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


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