分类: LINUX
2012-03-31 22:09:37
想给MySQL打google的补丁,找到方法还没试,记一下
1.cd 到源代码文件夹下 [@my064111.sqa.cm4 ~] $cd mysql-5.1.48
[@my064111.sqa.cm4 ~/mysql-5.1.48] 准备好bin.diff文件
2. 执行patch命令 [@my064111.sqa.cm4 ~/mysql-5.1.48] $patch -p1 < bin.diff patching file sql/log_event.cc patching file sql/log_event.h patching file sql/mysqld.cc patching file sql/mysql_priv.h patching file sql/protocol.cc patching file sql/set_var.cc patching file sql/sql_builtin.cc patching file sql/sql_class.cc patching file sql/sql_class.h
3. 如果要恢复原先版本,执行: patch -p1 -R < bin.diff |