Using Maatkit to syncronize table


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
With Maatkit's mysql-table-sync / mk-table-sync, I can easily synchronize between 2 tables whether it's on same database, different database or even different hosts. Below command will do the trick:

mk-table-sync \
u=user1,p=pwd1,h=server1,D=rodin,t=data \
u=user2,p=pwd2,h=server2,D=rodin,t=dataarchives \
--verbose --debug --print --lock --onlydo ui --execute
The command above will compare table rodin.data on server1 (source) with rodin.dataarchives on server2 (destination). If you want to test comparison (say you are not trust the command) you can remove the --execute option. And if you are sure it's ok then you might want to remove options --verbose --debug --print.

The --onlydo ui option mean to tell mysql-table only do update and insert on destination table without delete any record(s). If you want completely synchronize table you might dont use it.

Now, if you try to sync table with different name, it will always prompt you like this.
"Source and destination table have different names.  Continue?  y/n:"

Annoying and you can run it in shell script. So what I do is remark line 782 until 788 of /usr/bin/mk-table-sync on Maatkit version 1316.

One thing still I dont know how is when I tried to uninstall maatkit, it displayed error:
----
Uninstall is unsafe and deprecated, the uninstallation was not performed.
We will show what would have been done.

no packlist file found: at /usr/lib/perl5/5.8.5/ExtUtils/Install.pm line
318.
make: *** [uninstall_from_sitedirs] Error 2
----
I leave that open



smtproutes for localmailserver


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
Say you have another local mailserver on your site, that will only deliver email locally
i.e. with domain gateway.myholding.com then you can this on your /var/qmail/control/smtproutes
gateway.myholding.com:
:smtp.myholding.com

then every email destined for gateway.myholding.com will be own processed
and other destination will be passed to another SMTP server (in this case smtp.myholding.com)

http://wiki.qmailtoaster.com/index.php/Smtproutes



WebLinks


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
Added new script called ParticleSoft Links for my Weblinks. This site will hold my favorits weblinks while I surfing the web. Enjoy




RHCE Training


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
This week (19-22 Nov, 2007) I take RHCE (RedHat Certified Engineer) training on IndoLinux. This training discuss mostly about network services that Redhat can provide and serve them correctly. And SELinux configuration. The trainer is the same trainer on my RHCT training, Andre Kusuma. Nice to be trained by him again.

RHCE Exam will be held next month. wait and see......
On Dec 17, 2007 I take exam
On Dec 18, 2008 I received email from RedHat that I pass the exam and get RHCE
Hooray......


My Ubuntu Blog


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
With Ubuntu on the rise, I like to taste it how is Ubuntu. So I am end up installing it on my notebook. My Experience using Ubuntu is written on AUX

Because AUX is using Wordpress as blog script, so to faster my blogging, I am adding another Firefox extentions calld ScribeFire


how to read apache log


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
nice to read and a good information for web server admin on how to read httpd log

How to read Apache log



Page :  1