<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.integrics.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ducto</id>
	<title>Integrics Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.integrics.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ducto"/>
	<link rel="alternate" type="text/html" href="http://wiki.integrics.com/wiki/Special:Contributions/Ducto"/>
	<updated>2026-04-18T07:13:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=353</id>
		<title>Upgrading MySQL to 5.7 or MariaDB to 10.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=353"/>
		<updated>2023-05-29T17:12:45Z</updated>

		<summary type="html">&lt;p&gt;Ducto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Make sure that 'mysql_upgrade' command is run&lt;br /&gt;
* Check if the following tables are created: innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, slave_worker_info&lt;br /&gt;
 &lt;br /&gt;
If one or some of the above tables are missing, create them manually using the below queries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_index_stats` (&lt;br /&gt;
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`index_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
`stat_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`stat_value` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`sample_size` bigint(20) unsigned DEFAULT NULL,&lt;br /&gt;
`stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_table_stats` (&lt;br /&gt;
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
`n_rows` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`clustered_index_size` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,&lt;br /&gt;
PRIMARY KEY (`database_name`,`table_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_master_info` (&lt;br /&gt;
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file.',&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last read event.',&lt;br /&gt;
`Host` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',&lt;br /&gt;
`User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',&lt;br /&gt;
`User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',&lt;br /&gt;
`Port` int(10) unsigned NOT NULL COMMENT 'The network port used to connect to the master.',&lt;br /&gt;
`Connect_retry` int(10) unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',&lt;br /&gt;
`Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',&lt;br /&gt;
`Ssl_ca` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',&lt;br /&gt;
`Ssl_capath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',&lt;br /&gt;
`Ssl_cert` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',&lt;br /&gt;
`Ssl_cipher` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',&lt;br /&gt;
`Ssl_key` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',&lt;br /&gt;
`Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.',&lt;br /&gt;
`Heartbeat` float NOT NULL,&lt;br /&gt;
`Bind` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',&lt;br /&gt;
`Ignored_server_ids` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',&lt;br /&gt;
`Uuid` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',&lt;br /&gt;
`Retry_count` bigint(20) unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',&lt;br /&gt;
`Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',&lt;br /&gt;
`Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',&lt;br /&gt;
`Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',&lt;br /&gt;
PRIMARY KEY (`Host`,`Port`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_relay_log_info` (&lt;br /&gt;
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',&lt;br /&gt;
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',&lt;br /&gt;
`Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.',&lt;br /&gt;
`Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',&lt;br /&gt;
`Number_of_workers` int(10) unsigned NOT NULL,&lt;br /&gt;
`Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',&lt;br /&gt;
PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_worker_info` (&lt;br /&gt;
`Id` int(10) unsigned NOT NULL,&lt;br /&gt;
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Checkpoint_relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Checkpoint_master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_seqno` int(10) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_group_size` int(10) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_group_bitmap` blob NOT NULL,&lt;br /&gt;
PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart the service, check and make sure that there is no error in database service after restarted.&lt;/div&gt;</summary>
		<author><name>Ducto</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=352</id>
		<title>Upgrading MySQL to 5.7 or MariaDB to 10.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=352"/>
		<updated>2023-05-29T17:12:20Z</updated>

		<summary type="html">&lt;p&gt;Ducto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Make sure that 'mysql_upgrade' command is run&lt;br /&gt;
* Check if the following tables are created: innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, slave_worker_info&lt;br /&gt;
 &lt;br /&gt;
If one or some of the above tables are missing, create them manually using the below queries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_index_stats` (&lt;br /&gt;
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`index_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
`stat_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`stat_value` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`sample_size` bigint(20) unsigned DEFAULT NULL,&lt;br /&gt;
`stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_table_stats` (&lt;br /&gt;
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
`n_rows` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`clustered_index_size` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,&lt;br /&gt;
PRIMARY KEY (`database_name`,`table_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_master_info` (&lt;br /&gt;
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file.',&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last read event.',&lt;br /&gt;
`Host` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',&lt;br /&gt;
`User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',&lt;br /&gt;
`User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',&lt;br /&gt;
`Port` int(10) unsigned NOT NULL COMMENT 'The network port used to connect to the master.',&lt;br /&gt;
`Connect_retry` int(10) unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',&lt;br /&gt;
`Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',&lt;br /&gt;
`Ssl_ca` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',&lt;br /&gt;
`Ssl_capath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',&lt;br /&gt;
`Ssl_cert` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',&lt;br /&gt;
`Ssl_cipher` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',&lt;br /&gt;
`Ssl_key` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',&lt;br /&gt;
`Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.',&lt;br /&gt;
`Heartbeat` float NOT NULL,&lt;br /&gt;
`Bind` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',&lt;br /&gt;
`Ignored_server_ids` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',&lt;br /&gt;
`Uuid` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',&lt;br /&gt;
`Retry_count` bigint(20) unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',&lt;br /&gt;
`Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',&lt;br /&gt;
`Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',&lt;br /&gt;
`Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',&lt;br /&gt;
PRIMARY KEY (`Host`,`Port`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_relay_log_info` (&lt;br /&gt;
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',&lt;br /&gt;
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',&lt;br /&gt;
`Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.',&lt;br /&gt;
`Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',&lt;br /&gt;
`Number_of_workers` int(10) unsigned NOT NULL,&lt;br /&gt;
`Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',&lt;br /&gt;
PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_worker_info` (&lt;br /&gt;
`Id` int(10) unsigned NOT NULL,&lt;br /&gt;
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Checkpoint_relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Checkpoint_master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_seqno` int(10) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_group_size` int(10) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_group_bitmap` blob NOT NULL,&lt;br /&gt;
PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart the service, check and make sure that there is no error in database service after restarted.&lt;/div&gt;</summary>
		<author><name>Ducto</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=351</id>
		<title>Upgrading MySQL to 5.7 or MariaDB to 10.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=351"/>
		<updated>2023-05-29T17:10:18Z</updated>

		<summary type="html">&lt;p&gt;Ducto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Make sure that 'mysql_upgrade' command is run&lt;br /&gt;
* Check if the following tables are created: innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, slave_worker_info&lt;br /&gt;
 &lt;br /&gt;
If one or some of the above tables are missing, create them manually using the below queries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_index_stats` (&lt;br /&gt;
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`index_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
`stat_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`stat_value` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`sample_size` bigint(20) unsigned DEFAULT NULL,&lt;br /&gt;
`stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_table_stats` (&lt;br /&gt;
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
`n_rows` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`clustered_index_size` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,&lt;br /&gt;
PRIMARY KEY (`database_name`,`table_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_master_info` (&lt;br /&gt;
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file.',&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last read event.',&lt;br /&gt;
`Host` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',&lt;br /&gt;
`User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',&lt;br /&gt;
`User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',&lt;br /&gt;
`Port` int(10) unsigned NOT NULL COMMENT 'The network port used to connect to the master.',&lt;br /&gt;
`Connect_retry` int(10) unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',&lt;br /&gt;
`Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',&lt;br /&gt;
`Ssl_ca` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',&lt;br /&gt;
`Ssl_capath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',&lt;br /&gt;
`Ssl_cert` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',&lt;br /&gt;
`Ssl_cipher` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',&lt;br /&gt;
`Ssl_key` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',&lt;br /&gt;
`Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.',&lt;br /&gt;
`Heartbeat` float NOT NULL,&lt;br /&gt;
`Bind` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',&lt;br /&gt;
`Ignored_server_ids` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',&lt;br /&gt;
`Uuid` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',&lt;br /&gt;
`Retry_count` bigint(20) unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',&lt;br /&gt;
`Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',&lt;br /&gt;
`Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',&lt;br /&gt;
`Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',&lt;br /&gt;
PRIMARY KEY (`Host`,`Port`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_relay_log_info` (&lt;br /&gt;
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',&lt;br /&gt;
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',&lt;br /&gt;
`Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.',&lt;br /&gt;
`Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',&lt;br /&gt;
`Number_of_workers` int(10) unsigned NOT NULL,&lt;br /&gt;
`Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',&lt;br /&gt;
PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_worker_info` (&lt;br /&gt;
`Id` int(10) unsigned NOT NULL,&lt;br /&gt;
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Checkpoint_relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`Checkpoint_master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_seqno` int(10) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_group_size` int(10) unsigned NOT NULL,&lt;br /&gt;
`Checkpoint_group_bitmap` blob NOT NULL,&lt;br /&gt;
PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart the service, check and make sure that there is no error in database service after restarted.&lt;/div&gt;</summary>
		<author><name>Ducto</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=350</id>
		<title>Upgrading MySQL to 5.7 or MariaDB to 10.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=350"/>
		<updated>2023-05-29T17:08:25Z</updated>

		<summary type="html">&lt;p&gt;Ducto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Make sure that 'mysql_upgrade' command is run&lt;br /&gt;
* Check if the following tables are created: innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, slave_worker_info&lt;br /&gt;
 &lt;br /&gt;
If one or some of the above tables are missing, create them manually using the below queries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_index_stats` (&lt;br /&gt;
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`index_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
`stat_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
`stat_value` bigint(20) unsigned NOT NULL,&lt;br /&gt;
`sample_size` bigint(20) unsigned DEFAULT NULL,&lt;br /&gt;
`stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_table_stats` (&lt;br /&gt;
   `database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
   `n_rows` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `clustered_index_size` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   PRIMARY KEY (`database_name`,`table_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_master_info` (&lt;br /&gt;
   `Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file.',&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last read event.',&lt;br /&gt;
   `Host` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',&lt;br /&gt;
   `User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',&lt;br /&gt;
   `User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',&lt;br /&gt;
   `Port` int(10) unsigned NOT NULL COMMENT 'The network port used to connect to the master.',&lt;br /&gt;
   `Connect_retry` int(10) unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',&lt;br /&gt;
   `Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',&lt;br /&gt;
   `Ssl_ca` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',&lt;br /&gt;
   `Ssl_capath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',&lt;br /&gt;
   `Ssl_cert` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',&lt;br /&gt;
   `Ssl_cipher` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',&lt;br /&gt;
   `Ssl_key` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',&lt;br /&gt;
   `Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.',&lt;br /&gt;
   `Heartbeat` float NOT NULL,&lt;br /&gt;
   `Bind` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',&lt;br /&gt;
   `Ignored_server_ids` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',&lt;br /&gt;
   `Uuid` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',&lt;br /&gt;
   `Retry_count` bigint(20) unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',&lt;br /&gt;
   `Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',&lt;br /&gt;
   `Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',&lt;br /&gt;
   `Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',&lt;br /&gt;
   PRIMARY KEY (`Host`,`Port`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_relay_log_info` (&lt;br /&gt;
   `Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',&lt;br /&gt;
   `Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',&lt;br /&gt;
   `Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.',&lt;br /&gt;
   `Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',&lt;br /&gt;
   `Number_of_workers` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',&lt;br /&gt;
   PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_worker_info` (&lt;br /&gt;
   `Id` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Checkpoint_relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Checkpoint_master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_seqno` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_group_size` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_group_bitmap` blob NOT NULL,&lt;br /&gt;
   PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart the service, check and make sure that there is no error in database service after restarted.&lt;/div&gt;</summary>
		<author><name>Ducto</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=349</id>
		<title>Upgrading MySQL to 5.7 or MariaDB to 10.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=349"/>
		<updated>2023-05-29T17:07:53Z</updated>

		<summary type="html">&lt;p&gt;Ducto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Make sure that 'mysql_upgrade' command is run&lt;br /&gt;
* Check if the following tables are created: innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, slave_worker_info&lt;br /&gt;
 &lt;br /&gt;
If one or some of the above tables are missing, create them manually using the below queries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_index_stats` (&lt;br /&gt;
   `database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `index_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
   `stat_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `stat_value` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `sample_size` bigint(20) unsigned DEFAULT NULL,&lt;br /&gt;
   `stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_table_stats` (&lt;br /&gt;
   `database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
   `n_rows` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `clustered_index_size` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   PRIMARY KEY (`database_name`,`table_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_master_info` (&lt;br /&gt;
   `Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file.',&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last read event.',&lt;br /&gt;
   `Host` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',&lt;br /&gt;
   `User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',&lt;br /&gt;
   `User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',&lt;br /&gt;
   `Port` int(10) unsigned NOT NULL COMMENT 'The network port used to connect to the master.',&lt;br /&gt;
   `Connect_retry` int(10) unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',&lt;br /&gt;
   `Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',&lt;br /&gt;
   `Ssl_ca` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',&lt;br /&gt;
   `Ssl_capath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',&lt;br /&gt;
   `Ssl_cert` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',&lt;br /&gt;
   `Ssl_cipher` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',&lt;br /&gt;
   `Ssl_key` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',&lt;br /&gt;
   `Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.',&lt;br /&gt;
   `Heartbeat` float NOT NULL,&lt;br /&gt;
   `Bind` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',&lt;br /&gt;
   `Ignored_server_ids` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',&lt;br /&gt;
   `Uuid` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',&lt;br /&gt;
   `Retry_count` bigint(20) unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',&lt;br /&gt;
   `Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',&lt;br /&gt;
   `Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',&lt;br /&gt;
   `Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',&lt;br /&gt;
   PRIMARY KEY (`Host`,`Port`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_relay_log_info` (&lt;br /&gt;
   `Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',&lt;br /&gt;
   `Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',&lt;br /&gt;
   `Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.',&lt;br /&gt;
   `Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',&lt;br /&gt;
   `Number_of_workers` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',&lt;br /&gt;
   PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_worker_info` (&lt;br /&gt;
   `Id` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Checkpoint_relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Checkpoint_master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_seqno` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_group_size` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_group_bitmap` blob NOT NULL,&lt;br /&gt;
   PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart the service, check and make sure that there is no error in database service after restarted.&lt;/div&gt;</summary>
		<author><name>Ducto</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=348</id>
		<title>Upgrading MySQL to 5.7 or MariaDB to 10.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=348"/>
		<updated>2023-05-29T17:07:04Z</updated>

		<summary type="html">&lt;p&gt;Ducto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Make sure that 'mysql_upgrade' command is run&lt;br /&gt;
* Check if the following tables are created: innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, slave_worker_info&lt;br /&gt;
 &lt;br /&gt;
If one or some of the above tables are missing, create them manually using the below queries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_index_stats` (&lt;br /&gt;
   `database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `index_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
   `stat_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `stat_value` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `sample_size` bigint(20) unsigned DEFAULT NULL,&lt;br /&gt;
   `stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `innodb_table_stats` (&lt;br /&gt;
   `database_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `table_name` varchar(64) COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,&lt;br /&gt;
   `n_rows` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `clustered_index_size` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   PRIMARY KEY (`database_name`,`table_name`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_master_info` (&lt;br /&gt;
   `Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file.',&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last read event.',&lt;br /&gt;
   `Host` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',&lt;br /&gt;
   `User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',&lt;br /&gt;
   `User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',&lt;br /&gt;
   `Port` int(10) unsigned NOT NULL COMMENT 'The network port used to connect to the master.',&lt;br /&gt;
   `Connect_retry` int(10) unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',&lt;br /&gt;
   `Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',&lt;br /&gt;
   `Ssl_ca` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',&lt;br /&gt;
   `Ssl_capath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',&lt;br /&gt;
   `Ssl_cert` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',&lt;br /&gt;
   `Ssl_cipher` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',&lt;br /&gt;
   `Ssl_key` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',&lt;br /&gt;
   `Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.',&lt;br /&gt;
   `Heartbeat` float NOT NULL,&lt;br /&gt;
   `Bind` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',&lt;br /&gt;
   `Ignored_server_ids` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',&lt;br /&gt;
   `Uuid` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',&lt;br /&gt;
   `Retry_count` bigint(20) unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',&lt;br /&gt;
   `Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',&lt;br /&gt;
   `Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',&lt;br /&gt;
   `Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',&lt;br /&gt;
   PRIMARY KEY (`Host`,`Port`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_relay_log_info` (&lt;br /&gt;
   `Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',&lt;br /&gt;
   `Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',&lt;br /&gt;
   `Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.',&lt;br /&gt;
   `Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',&lt;br /&gt;
   `Number_of_workers` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',&lt;br /&gt;
   PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
USE mysql;&lt;br /&gt;
CREATE TABLE `slave_worker_info` (&lt;br /&gt;
   `Id` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Checkpoint_relay_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,&lt;br /&gt;
   `Checkpoint_master_log_pos` bigint(20) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_seqno` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_group_size` int(10) unsigned NOT NULL,&lt;br /&gt;
   `Checkpoint_group_bitmap` blob NOT NULL,&lt;br /&gt;
   PRIMARY KEY (`Id`)&lt;br /&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information';&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ducto</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=347</id>
		<title>Upgrading MySQL to 5.7 or MariaDB to 10.2</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Upgrading_MySQL_to_5.7_or_MariaDB_to_10.2&amp;diff=347"/>
		<updated>2023-05-29T17:02:39Z</updated>

		<summary type="html">&lt;p&gt;Ducto: Created page with &amp;quot;* Make sure that 'mysql_upgrade' command is run * Check if the following tables are created: innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Make sure that 'mysql_upgrade' command is run&lt;br /&gt;
* Check if the following tables are created: innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, slave_worker_info&lt;br /&gt;
  If one or some of the above tables are missing, create them manually using the below queries:&lt;/div&gt;</summary>
		<author><name>Ducto</name></author>
		
	</entry>
</feed>