MySQL 8.0.39
Source Code Documentation
Mysql_clone Struct Reference

The descriptor structure for the plugin, that is referred from st_mysql_plugin. More...

#include <plugin_clone.h>

Public Attributes

int interface_version
 clone plugin interface version More...
 
int(* clone_local )(THD *thd, const char *data_dir)
 Clone database from local server. More...
 
int(* clone_client )(THD *thd, const char *remote_host, uint remote_port, const char *remote_user, const char *remote_passwd, const char *data_dir, int ssl_mode)
 Clone database from remote server. More...
 
int(* clone_server )(THD *thd, MYSQL_SOCKET socket)
 Clone database and send to remote clone client. More...
 

Detailed Description

The descriptor structure for the plugin, that is referred from st_mysql_plugin.

Member Data Documentation

◆ clone_client

int(* Mysql_clone::clone_client) (THD *thd, const char *remote_host, uint remote_port, const char *remote_user, const char *remote_passwd, const char *data_dir, int ssl_mode)

Clone database from remote server.

Parameters
[in]thdserver thread handle
[in]remote_hostremote host IP address
[in]remote_portremote server port
[in]remote_userremote user name
[in]remote_passwdremote user's password
[in]data_dircloned data directory
[in]ssl_modessl mode for remote connection
Returns
error code, 0 on success

◆ clone_local

int(* Mysql_clone::clone_local) (THD *thd, const char *data_dir)

Clone database from local server.

Parameters
[in]thdserver thread handle
[in]data_dircloned data directory
Returns
error code, 0 on success

◆ clone_server

int(* Mysql_clone::clone_server) (THD *thd, MYSQL_SOCKET socket)

Clone database and send to remote clone client.

Parameters
[in]thdserver thread handle
[in]socketnetwork socket to remote client
Returns
error code, 0 on success

◆ interface_version

int Mysql_clone::interface_version

clone plugin interface version


The documentation for this struct was generated from the following file: