nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

MySQL databse differences

This is a discussion on MySQL databse differences within the Databases servers forums, part of the Mastering Servers category; Hi I have to find out the difference between MySQL databases. let me put the situation I have a db ...


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Linux answers from nixCraft.


Databases servers Discussions of databases of all types - especially MySQL.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2009, 01:11 AM
Junior Member
User
 
Join Date: May 2009
OS: Debian
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
unixadmin007 is on a distinguished road
Default MySQL databse differences

Hi
I have to find out the difference between MySQL databases.
let me put the situation

I have a db named abc i took the backup 10 days back as abc.sql
today i dumped the db and i have another sql file abc.sql
now i want to find difference between these two files... like exactly what has been added to the database in past 10 days....please guide
Reply With Quote
  #2 (permalink)  
Old 11-06-2009, 02:12 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 243 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Have you tried diff command?
Code:
diff old.abc.sql new.abc.sql
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 11-06-2009, 02:32 AM
Junior Member
User
 
Join Date: May 2009
OS: Debian
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
unixadmin007 is on a distinguished road
Default

yes but it gives me a lot of output and moreover not in redable format
Reply With Quote
  #4 (permalink)  
Old 11-06-2009, 03:38 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 243 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You've to write your own script to see the diff. diff is standard UNIX command.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +5.5. The time now is 07:20 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38