同步操作将从 nwsuafzq/MySQLAdvisor 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; version 2 ofthe License.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */#ifndef _my_audit_h#define _my_audit_h/*************************************************************************API for Audit plugin. (MYSQL_AUDIT_PLUGIN)*/#include "plugin.h"#define MYSQL_AUDIT_CLASS_MASK_SIZE 1#define MYSQL_AUDIT_INTERFACE_VERSION 0x0301/*************************************************************************AUDIT CLASS : GENERALLOG events occurs before emitting to the general query log.ERROR events occur before transmitting errors to the user.RESULT events occur after transmitting a resultset to the user.STATUS events occur after transmitting a resultset or errorsto the user.*/#define MYSQL_AUDIT_GENERAL_CLASS 0#define MYSQL_AUDIT_GENERAL_CLASSMASK (1 << MYSQL_AUDIT_GENERAL_CLASS)#define MYSQL_AUDIT_GENERAL_LOG 0#define MYSQL_AUDIT_GENERAL_ERROR 1#define MYSQL_AUDIT_GENERAL_RESULT 2#define MYSQL_AUDIT_GENERAL_STATUS 3struct mysql_event_general{unsigned int event_subclass;int general_error_code;unsigned long general_thread_id;const char *general_user;unsigned int general_user_length;const char *general_command;unsigned int general_command_length;const char *general_query;unsigned int general_query_length;struct charset_info_st *general_charset;unsigned long long general_time;unsigned long long general_rows;MYSQL_LEX_STRING general_host;MYSQL_LEX_STRING general_sql_command;MYSQL_LEX_STRING general_external_user;MYSQL_LEX_STRING general_ip;};/*AUDIT CLASS : CONNECTIONCONNECT occurs after authentication phase is completed.DISCONNECT occurs after connection is terminated.CHANGE_USER occurs after COM_CHANGE_USER RPC is completed.*/#define MYSQL_AUDIT_CONNECTION_CLASS 1#define MYSQL_AUDIT_CONNECTION_CLASSMASK (1 << MYSQL_AUDIT_CONNECTION_CLASS)#define MYSQL_AUDIT_CONNECTION_CONNECT 0#define MYSQL_AUDIT_CONNECTION_DISCONNECT 1#define MYSQL_AUDIT_CONNECTION_CHANGE_USER 2struct mysql_event_connection{unsigned int event_subclass;int status;unsigned long thread_id;const char *user;unsigned int user_length;const char *priv_user;unsigned int priv_user_length;const char *external_user;unsigned int external_user_length;const char *proxy_user;unsigned int proxy_user_length;const char *host;unsigned int host_length;const char *ip;unsigned int ip_length;const char *database;unsigned int database_length;};/*************************************************************************Here we define the descriptor structure, that is referred fromst_mysql_plugin.release_thd() event occurs when the event class consumer is to bedisassociated from the specified THD. This would typically occurbefore some operation which may require sleeping - such as whenwaiting for the next query from the client.event_notify() is invoked whenever an event occurs which is of anyclass for which the plugin has interest. The second argumentindicates the specific event class and the third argument is dataas required for that class.class_mask is an array of bits used to indicate what event classesthat this plugin wants to receive.*/struct st_mysql_audit{int interface_version;void (*release_thd)(MYSQL_THD);void (*event_notify)(MYSQL_THD, unsigned int, const void *);unsigned long class_mask[MYSQL_AUDIT_CLASS_MASK_SIZE];};#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。