LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2012, 03:25 AM   #1
karthilin
LQ Newbie
 
Registered: Sep 2012
Location: Chennai
Posts: 13

Rep: Reputation: Disabled
Doubt in MySQL query


I want to delete one row in my table but I wrongly deleted whole table,suddenly I tried mysqldumb but datas not stored. How to I get my data and Where all mysql data stored in Linux?


Thanks

Last edited by karthilin; 10-26-2012 at 03:27 AM.
 
Old 10-26-2012, 04:40 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
mysqldump is a backup program, but it can only backup data that is there.
If you've already deleted the table contents, then its gone....
I think there's a SQL session cmd you can set so that its always possible to use the rollback cmd if you stay inside the same session (for data only).
If you drop a table, that can't be rolled back.

See https://dev.mysql.com/doc/refman/5.0...rent-apis.html
https://dev.mysql.com/doc/refman/5.1...it-commit.html
for examples of 'set autocommit' on/off
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql doubt maheshp86 Linux - Server 1 09-14-2010 07:29 AM
Doubt in MySql vibinlakshman Programming 2 02-17-2009 12:08 PM
interesting MySQL query/view query :s mjh Programming 3 03-25-2008 07:30 AM
mysql use output of one query in another query secretlydead Programming 2 11-19-2007 01:25 AM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration