一、        简单介绍

mysqlbinlog:用于查看server生成的二进制日志的工具。

二、       命令格式

mysqlbinlog 选项日志文件1

三、       经常使用參数

-d--database=name:指定数据库名称,仅仅列出指定数据库相关操作

-o--offset=#:忽略掉日志中前N行命令

-r--result-file=name:将输出的文本格式日志输出到指定文件

-s--short-form:显示简单格式忽略掉一些信息

--set-charset=char-name:在输出为文本格式时,在文件第一行加上set names char-name。这个选项在某些情况下装载数据时很实用。

--start-datetime=date --stop-datetime=date指定日期间各内的全部日志

--start-position=# --stop-position=#:指定位置时间间隔内的全部日志

四、       经常使用样例

1.     查看当前正在使用的二进制日志文件

mysql>show master status;

+--------------+----------+--------------+------------------+-------------------+

| File         | Position | Binlog_Do_DB |Binlog_Ignore_DB | Executed_Gtid_Set |

+--------------+----------+--------------+------------------+-------------------+

| mysql.000007 |      120 |              |                  |                   |

+--------------+----------+--------------+------------------+-------------------+

1 row in set (0.00 sec)

2.     不加不论什么參数,显示全部日志

[root@localhostdata]# mysqlbinlog mysql.000007

/*!50530 SET@@SESSION.PSEUDO_SLAVE_MODE=1*/;

/*!40019 SET@@session.max_insert_delayed_threads=0*/;

/*!50003 SET@OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;

DELIMITER /*!*/;

# at 4

#150717 11:01:43 server id 1  end_log_pos 120 CRC32 0xc3bad8fd  Start: binlog v 4, server v 5.6.12-logcreated 150717 11:01:43

# Warning: this binlog is either in use orwas not closed properly.

BINLOG '

F3CoVQ8BAAAAdAAAAHgAAAABAAQANS42LjEyLWxvZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAAXAAEGggAAAAICAgCAAAACgoKGRkAAf3Y

usM=

'/*!*/;

# at 120

#150717 11:05:54 server id 1  end_log_pos 219 CRC32 0x79fabcbc  Query  thread_id=24910 exec_time=0    error_code=0

use`test2`/*!*/;

SET TIMESTAMP=1437102354/*!*/;

SET @@session.pseudo_thread_id=24910/*!*/;

SET @@session.foreign_key_checks=1,@@session.sql_auto_is_null=0, @@session.unique_checks=1,@@session.autocommit=1/*!*/;

SET @@session.sql_mode=1075838976/*!*/;

SET @@session.auto_increment_increment=1,@@session.auto_increment_offset=1/*!*/;

/*!\C utf8 *//*!*/;

SET@@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=8/*!*/;

SET @@session.lc_time_names=0/*!*/;

SET@@session.collation_database=DEFAULT/*!*/;

createtable t6(id int)

/*!*/;

# at 219

#150717 11:06:09 server id 1  end_log_pos 300 CRC32 0xd883c511  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102369/*!*/;

BEGIN

/*!*/;

# at 300

#150717 11:06:09 server id 1  end_log_pos 399 CRC32 0x4845ae22  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102369/*!*/;

insertinto t6 value(1)

/*!*/;

# at 399

#150717 11:06:09 server id 1  end_log_pos 430 CRC32 0x254bd95b  Xid = 75156

COMMIT/*!*/;

# at 430

#150717 11:06:12 server id 1  end_log_pos 511 CRC32 0x400701db  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102372/*!*/;

BEGIN

/*!*/;

# at 511

#150717 11:06:12 server id 1  end_log_pos 610 CRC32 0x4d494d54  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102372/*!*/;

insertinto t6 value(2)

/*!*/;

# at 610

#150717 11:06:12 server id 1  end_log_pos 641 CRC32 0xc0160921  Xid = 75157

COMMIT/*!*/;

# at 641

#150717 11:06:14 server id 1  end_log_pos 722 CRC32 0x722e009d  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102374/*!*/;

BEGIN

/*!*/;

# at 722

#150717 11:06:14 server id 1  end_log_pos 821 CRC32 0x46f08ed1  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102374/*!*/;

insertinto t6 value(3)

/*!*/;

# at 821

#150717 11:06:14 server id 1  end_log_pos 852 CRC32 0x6eccabd7  Xid = 75158

COMMIT/*!*/;

# at 852

#150717 11:06:36 server id 1  end_log_pos 933 CRC32 0x1d97f072  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102396/*!*/;

BEGIN

/*!*/;

# at 933

#150717 11:06:36 server id 1  end_log_pos 1034 CRC32 0xca5d7197         Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102396/*!*/;

deletefrom t6 where id=3

/*!*/;

# at 1034

#150717 11:06:36 server id 1  end_log_pos 1065 CRC32 0xc36e2552         Xid = 75159

COMMIT/*!*/;

# at 1065

#150717 11:21:20 server id 1  end_log_pos 1166 CRC32 0x937167ae         Query  thread_id=24910 exec_time=0    error_code=0

use `jiaowu`/*!*/;

SET TIMESTAMP=1437103280/*!*/;

createtable t7(id int)

/*!*/;

# at 1166

#150717 11:22:03 server id 1  end_log_pos 1261 CRC32 0xb31be6d1         Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437103323/*!*/;

truncatetable t7

/*!*/;

DELIMITER ;

# End of log file

ROLLBACK /* added by mysqlbinlog */;

/*!50003 SETCOMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;

/*!50530 SET@@SESSION.PSEUDO_SLAVE_MODE=0*/;

1.     做一些操作

mysql>create table t6(id int);

Query OK, 0 rows affected (0.02 sec)

mysql>insert into t6 value(1);

Query OK, 1 row affected (0.00 sec)

mysql>insert into t6 value(2);

Query OK, 1 row affected (0.01 sec)

mysql>insert into t6 value(3);

Query OK, 1 row affected (0.01 sec)

mysql>delete from t6 where id=3;

Query OK, 1 row affected (0.00 sec)

2.        仅仅看jiaowu库中的信息

[root@localhostdata]# mysqlbinlog mysql.000007 -d jiaowu

/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;

/*!40019 SET@@session.max_insert_delayed_threads=0*/;

/*!50003 SET@OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;

DELIMITER /*!*/;

# at 4

#150717 11:01:43 server id 1  end_log_pos 120 CRC32 0xc3bad8fd  Start: binlog v 4, server v 5.6.12-logcreated 150717 11:01:43

# Warning: this binlog is either in use orwas not closed properly.

BINLOG '

F3CoVQ8BAAAAdAAAAHgAAAABAAQANS42LjEyLWxvZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAAXAAEGggAAAAICAgCAAAACgoKGRkAAf3Y

usM=

'/*!*/;

# at 120

# at 219

#150717 11:06:09 server id 1  end_log_pos 300 CRC32 0xd883c511  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102369/*!*/;

SET @@session.pseudo_thread_id=24910/*!*/;

SET @@session.foreign_key_checks=1,@@session.sql_auto_is_null=0, @@session.unique_checks=1,@@session.autocommit=1/*!*/;

SET @@session.sql_mode=1075838976/*!*/;

SET @@session.auto_increment_increment=1,@@session.auto_increment_offset=1/*!*/;

/*!\C utf8 *//*!*/;

SET @@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=8/*!*/;

SET @@session.lc_time_names=0/*!*/;

SET@@session.collation_database=DEFAULT/*!*/;

BEGIN

/*!*/;

# at 300

# at 399

#150717 11:06:09 server id 1  end_log_pos 430 CRC32 0x254bd95b  Xid = 75156

COMMIT/*!*/;

# at 430

#150717 11:06:12 server id 1  end_log_pos 511 CRC32 0x400701db  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102372/*!*/;

BEGIN

/*!*/;

# at 511

# at 610

#150717 11:06:12 server id 1  end_log_pos 641 CRC32 0xc0160921  Xid = 75157

COMMIT/*!*/;

# at 641

#150717 11:06:14 server id 1  end_log_pos 722 CRC32 0x722e009d  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102374/*!*/;

BEGIN

/*!*/;

# at 722

# at 821

#150717 11:06:14 server id 1  end_log_pos 852 CRC32 0x6eccabd7  Xid = 75158

COMMIT/*!*/;

# at 852

#150717 11:06:36 server id 1  end_log_pos 933 CRC32 0x1d97f072  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102396/*!*/;

BEGIN

/*!*/;

# at 933

# at 1034

#150717 11:06:36 server id 1  end_log_pos 1065 CRC32 0xc36e2552         Xid = 75159

COMMIT/*!*/;

# at 1065

#150717 11:21:20 server id 1  end_log_pos 1166 CRC32 0x937167ae         Query  thread_id=24910 exec_time=0    error_code=0

use `jiaowu`/*!*/;

SET TIMESTAMP=1437103280/*!*/;

createtable t7(id int)

/*!*/;

# at 1166

#150717 11:22:03 server id 1  end_log_pos 1261 CRC32 0xb31be6d1         Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437103323/*!*/;

truncatetable t7

/*!*/;

DELIMITER ;

# End of log file

ROLLBACK /* added by mysqlbinlog */;

/*!50003 SETCOMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;

/*!50530 SET@@SESSION.PSEUDO_SLAVE_MODE=0*/;

3.     忽略前三个操作

[root@localhostdata]# mysqlbinlog mysql.000007 -o 3

/*!50530 SET@@SESSION.PSEUDO_SLAVE_MODE=1*/;

/*!40019 SET @@session.max_insert_delayed_threads=0*/;

/*!50003 SET@OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;

DELIMITER /*!*/;

# at 4

#150717 11:01:43 server id 1  end_log_pos 120 CRC32 0xc3bad8fd  Start: binlog v 4, server v 5.6.12-logcreated 150717 11:01:43

# Warning: this binlog is either in use orwas not closed properly.

BINLOG '

F3CoVQ8BAAAAdAAAAHgAAAABAAQANS42LjEyLWxvZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAAXAAEGggAAAAICAgCAAAACgoKGRkAAf3Y

usM=

'/*!*/;

# at 300

#150717 11:06:09 server id 1  end_log_pos 399 CRC32 0x4845ae22  Query  thread_id=24910 exec_time=0     error_code=0

use`test2`/*!*/;

SET TIMESTAMP=1437102369/*!*/;

SET @@session.pseudo_thread_id=24910/*!*/;

SET @@session.foreign_key_checks=1,@@session.sql_auto_is_null=0, @@session.unique_checks=1,@@session.autocommit=1/*!*/;

SET @@session.sql_mode=1075838976/*!*/;

SET @@session.auto_increment_increment=1,@@session.auto_increment_offset=1/*!*/;

/*!\C utf8 *//*!*/;

SET @@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=8/*!*/;

SET @@session.lc_time_names=0/*!*/;

SET@@session.collation_database=DEFAULT/*!*/;

insertinto t6 value(1)

/*!*/;

# at 399

#150717 11:06:09 server id 1  end_log_pos 430 CRC32 0x254bd95b  Xid = 75156

COMMIT/*!*/;

# at 430

#150717 11:06:12 server id 1  end_log_pos 511 CRC32 0x400701db  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102372/*!*/;

BEGIN

/*!*/;

# at 511

#150717 11:06:12 server id 1  end_log_pos 610 CRC32 0x4d494d54  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102372/*!*/;

insertinto t6 value(2)

/*!*/;

# at 610

#150717 11:06:12 server id 1  end_log_pos 641 CRC32 0xc0160921  Xid = 75157

COMMIT/*!*/;

# at 641

#150717 11:06:14 server id 1  end_log_pos 722 CRC32 0x722e009d  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102374/*!*/;

BEGIN

/*!*/;

# at 722

#150717 11:06:14 server id 1  end_log_pos 821 CRC32 0x46f08ed1  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102374/*!*/;

insertinto t6 value(3)

/*!*/;

# at 821

#150717 11:06:14 server id 1  end_log_pos 852 CRC32 0x6eccabd7  Xid = 75158

COMMIT/*!*/;

# at 852

#150717 11:06:36 server id 1  end_log_pos 933 CRC32 0x1d97f072  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102396/*!*/;

BEGIN

/*!*/;

# at 933

#150717 11:06:36 server id 1  end_log_pos 1034 CRC32 0xca5d7197         Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102396/*!*/;

deletefrom t6 where id=3

/*!*/;

# at 1034

#150717 11:06:36 server id 1  end_log_pos 1065 CRC32 0xc36e2552         Xid = 75159

COMMIT/*!*/;

# at 1065

#150717 11:21:20 server id 1  end_log_pos 1166 CRC32 0x937167ae         Query  thread_id=24910 exec_time=0    error_code=0

use `jiaowu`/*!*/;

SET TIMESTAMP=1437103280/*!*/;

createtable t7(id int)

/*!*/;

# at 1166

#150717 11:22:03 server id 1  end_log_pos 1261 CRC32 0xb31be6d1         Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437103323/*!*/;

truncatetable t7

/*!*/;

DELIMITER ;

# End of log file

ROLLBACK /* added by mysqlbinlog */;

/*!50003 SETCOMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;

/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;

4.     将输出结果导出到文件

[root@localhostdata]# mysqlbinlog mysql.000007 -o 3 -r /root/test.sql

5.     将指定时间中的内容简单显示

[root@localhostdata]# mysqlbinlog mysql.000007    --start-datetime='2015/07/17 11:06:14'--stop-datetime='2015/07/17 11:12:20'

/*!50530 SET@@SESSION.PSEUDO_SLAVE_MODE=1*/;

/*!40019 SET@@session.max_insert_delayed_threads=0*/;

/*!50003 SET@OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;

DELIMITER /*!*/;

# at 4

#150717 11:01:43 server id 1  end_log_pos 120 CRC32 0xc3bad8fd  Start: binlog v 4, server v 5.6.12-logcreated 150717 11:01:43

# Warning: this binlog is either in use orwas not closed properly.

BINLOG '

F3CoVQ8BAAAAdAAAAHgAAAABAAQANS42LjEyLWxvZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAAXAAEGggAAAAICAgCAAAACgoKGRkAAf3Y

usM=

'/*!*/;

# at 641

#150717 11:06:14 server id 1  end_log_pos 722CRC32 0x722e009d  Query   thread_id=24910 exec_time=0     error_code=0

SET TIMESTAMP=1437102374/*!*/;

SET @@session.pseudo_thread_id=24910/*!*/;

SET @@session.foreign_key_checks=1,@@session.sql_auto_is_null=0, @@session.unique_checks=1,@@session.autocommit=1/*!*/;

SET @@session.sql_mode=1075838976/*!*/;

SET @@session.auto_increment_increment=1,@@session.auto_increment_offset=1/*!*/;

/*!\C utf8 *//*!*/;

SET@@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=8/*!*/;

SET @@session.lc_time_names=0/*!*/;

SET@@session.collation_database=DEFAULT/*!*/;

BEGIN

/*!*/;

# at 722

#150717 11:06:14 server id 1  end_log_pos 821 CRC32 0x46f08ed1  Query  thread_id=24910 exec_time=0     error_code=0

use `test2`/*!*/;

SET TIMESTAMP=1437102374/*!*/;

insert into t6 value(3)

/*!*/;

# at 821

#150717 11:06:14 server id 1  end_log_pos 852 CRC32 0x6eccabd7  Xid = 75158

COMMIT/*!*/;

# at 852

#150717 11:06:36 server id 1  end_log_pos 933 CRC32 0x1d97f072  Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102396/*!*/;

BEGIN

/*!*/;

# at 933

#150717 11:06:36 server id 1  end_log_pos 1034 CRC32 0xca5d7197         Query  thread_id=24910 exec_time=0    error_code=0

SET TIMESTAMP=1437102396/*!*/;

delete from t6 where id=3

/*!*/;

# at 1034

#150717 11:06:36 server id 1  end_log_pos 1065CRC32 0xc36e2552         Xid = 75159

COMMIT/*!*/;

DELIMITER ;

# End of log file

ROLLBACK /* added by mysqlbinlog */;

/*!50003 SETCOMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;

/*!50530 SET@@SESSION.PSEUDO_SLAVE_MODE=0*/;=0*/;

注意:--start-datetime包括所选择时间。--stop-datatime不包括所选时间,假设仅仅写前者则表明到日志最后结束,假设仅仅写后者则表明从日志最開始时间開始

每天进步一点点——mysql——mysqlbinlog的更多相关文章

  1. MySQL mysqlbinlog解析出的SQL语句被注释是怎么回事

    MySQL mysqlbinlog解析出的SQL语句被注释是怎么回事   一网友反馈使用mysqlbinlog解析出的二进制日志中的内容中,有些SQL语句有#注释的情况,这个是怎么回事呢?我们通过实验 ...

  2. Mysql: mysqlbinlog命令查看日志文件

    想查看mysql的binlog文件,但是裸的binlog文件是无法直视的,mysqlbinlog这个工具是用来查看binlog文件内容的(使用方式man mysqlbinlog查看),但是使用mysq ...

  3. MySQL mysqlbinlog 访问mysql-bin日志出错

    问题 mysqlbinlog -v -v --base64-output=DECODE-ROWS mysql-bin.000166 | less ERROR: Error in Log_event:: ...

  4. MySQL mysqlbinlog企业案例

    内容待补充 案例文字说明: 7.3 故障时间点: 周四上午10点,开发人员误删除了一个表,如何恢复? 7.4 思路: 1.停业务,避免数据的二次伤害 2.找一个临时库,恢复周三23:00全备 3.截取 ...

  5. 每天进步一点点——mysql——Percona XtraBackup(innobackupex)

    一.  简单介绍 Percona XtraBackup是开源免费的MySQL数据库热备份软件,它能对InnoDB和XtraDB存储引擎的数据库非堵塞地备份(对于MyISAM的备份相同须要加表锁).Xt ...

  6. MySQL mysqlbinlog

    MySQL binlog日志记录了MySQL数据库从启用日志以来所有对当前数据库的变更.binlog日志属于二进制文件,我们可以从binlog提取出来生成可读的文本或者SQL语句来重建当前数据库以及根 ...

  7. mysql之 binlog维护详细解析(开启、binlog相关参数作用、mysqlbinlog解读、binlog删除)

    binary log 作用:主要实现三个重要的功能:用于复制,用于恢复,用于审计.binary log 相关参数:log_bin设置此参数表示启用binlog功能,并指定路径名称log_bin_ind ...

  8. Mysql的binlog日志与mysqlbinlog命令

    binlog相关 MySQL 的二进制日志 binlog 可以说是 MySQL 最重要的日志,它记录了所有的 DDL 和 DML 语句(除了数据查询语句select.show等),以事件形式记录,还包 ...

  9. MySQL碎碎念

    1. 如何修改Mysql的用户密码 mysql> update mysql.user set password=password('hello') where user='root'; mysq ...

随机推荐

  1. Xamarin Essentials教程设备信息DeviceInfo

    Xamarin Essentials教程设备信息DeviceInfo   设备信息包括设备类型.设备种类和操作系统.应用程序通过获取设备信息,可以判断当前程序是否适合在该设备上运行.例如,优酷提供TV ...

  2. ppt字体

    字体也需要设计.  太大众不太好.   ppt自带的字体样式 有毛笔风格的.vrinda. 其他的和这个字体样式差不多.选其中一个就可以了. 其他的个性样式就需要下载字体扩展了.作为经常做ppt的,还 ...

  3. LOJ.6068.[2017山东一轮集训Day4]棋盘(费用流zkw)

    题目链接 考虑两个\(\#\)之间产生的花费是怎样的.设这之间放了\(k\)个棋子,花费是\(\frac{k(k-1)}{2}\). 在\((r,c)\)处放棋子,行和列会同时产生花费,且花费和该行该 ...

  4. 通过Obfuscated ssh避免时不时ssh连接不畅的问题【转】

    众所周知的原因,为了能流畅的使用google.使用某些“不存在”的网站,我们一般都是需要通过某些不方便光明正大说明使用用途的技术.比如通过ssh tunnel,这是最简单的,也是用得最多的. 不过,这 ...

  5. mongodb副本集与分片结合

    1.在三个不同服务器上,分别建立副本集: 202服务器: 192.8.123.202:27017 replSet = r202 192.8.123.202:27018 replSet = r202 1 ...

  6. IDEA中maven模块变成灰色

    可能该模块被忽略,解决办法:

  7. MySQL之ORDER BY 详细解析

    1 概述 MySQL有两种方式可以实现ORDER BY: 1.通过索引扫描生成有序的结果 2.使用文件排序(filesort) 围绕着这两种排序方式,我们试着理解一下ORDER BY的执行过程以及回答 ...

  8. [模板][P4238]多项式求逆

    NTT多项式求逆模板,详见代码 #include <map> #include <set> #include <stack> #include <cmath& ...

  9. BZOJ4964 : 加长的咒语

    把$($看作$-1$,$)$看作$1$,设$a$为前缀和,则相当于找两个位置$x,y$使得$a[x]=a[y]$,且$a[x]$是$[x,y]$的区间最大值. 求出询问区间的最大值$o$,然后找到$o ...

  10. Java 关键字 static

    关键字static作用如下: 1. 为某个基本数据类型或对象分配单一的存储空间. 2. 实现某个属性或方法与类关联.在类被加载后类名可以直接调用静态成员方法(下面简称静态方法)或者访问静态成员变量(下 ...