Server IP : 185.86.78.101 / Your IP : 216.73.216.213 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/server/mysql/mysql-test/include/ |
Upload File : |
# ==== Purpose ==== # # Retrieves the server id of a certain event in the binlog. # # ==== Usage ==== # # [--let $event_number= <binlog ordinal of the event> ] # [--let $binlog_name= <binlog name> ] # [--let $debug= 1] # --source include/show_binlog_events_server_id.inc # # Parameters: # $event_number # The ordinal in the list of events returned by SHOW BINLOG EVENTS # It is 1-based. Default value is 1. # # $binlog_name # The name of the binlog. Default is the one presented by # SHOW BINLOG EVENTS. # # $debug # Enables debug information. Default is not enabled. # # Return Value # $event_server_id # The value from the server id of the requested event. # # Example: # # --let $event_number= 2 # --let $binlog_name= master-bin.000002 # --let $debug= 1 # --source include/show_binlog_events_server_id.inc # # --echo $event_server_id # --let $include_filename= show_binlog_events_server_id.inc --source include/begin_include_file.inc --let $_event_number= 1 if($event_number) { --let $_event_number= $event_number; } --let $_query= SHOW BINLOG EVENTS if($binlog_name) { --let $_query= $_query IN '$binlog_name' } --let $event_server_id= query_get_value($_query, Server_id, $_event_number) if($debug) { --echo Server Id for Event is $event_server_id } --let $include_filename= show_binlog_events_server_id.inc --source include/end_include_file.inc