Re: 回å¤: mysql transaction log
am 04.05.2010 20:32:58 von Claudio Nanni - TomTomMySQL does not have a thing such the Oracle transaction log.
But it has the Binary Log used by replication,
for this reason the binary log is server level and it is "decoupled"
from the storage engine concept.
Basically (if we consider the old good "statement" format) it is just a
file with commands that were executed on the master,
and then they are passed to the slaves, if any.
If you have the "binlog" option enabled on your server (this is the only
requirement for a server to work as a 'master')
you will have a set of log files (in binary format for compression
basically) that will contain all statement executed on the server
that changed data, this means no "select" statements.
It is quite easy to imagine that if you have this logging enabled from
the birth of the server keeping all binary logs will allow you to
'replay' logs on another server and rebuild the same situation.
To read the content of the binary logs MySQL provides the utility
[mysqlbinlog].
Just a splash on binary logging!
Read also on MySQL manual, it is a good exercise.
Cheers,
Claudio
On 5/4/2010 8:58 AM, Timo wrote:
> InnoDB support transaction. MyISAM does not support trantsaction.
>
> http://www.databasejournal.com/features/mysql/article.php/33 82171/Transactions-in-MySQL.htm
>
> 2010-05-04
>
>
>
> Best regards
> Timo Seven
> blog: http://zauc.wordpress.com
> #####请翻å¢æµè§ï¼æè
æå®hostså°74.200.243.252### ####
> twitter: https://twitter.com/zauc
> ######ä¹è¯·ç¿»å¢æµè§####################
> UNIX System Admin& MySQL DBA
>
>
>
> å件人: Angelina Paul
> åéæ¶é´: 2010-05-04 06:20
> 主 é¢: mysql transaction log
> æ¶ä»¶äºº: mysql@lists.mysql.com
>
>
>
> Please help me to understand more about the mysql transaction log (
> mysqlbinlog) file and its contents. Will it support only the innodb or all
> the storage engine types like MyISAM, InnoDB?
>
> Thanks,
>
> Arsh Paul
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org