<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>MySQL on Documentation</title>
    <link>/docs/dbaas/reference/products/mysql/</link>
    <description>Recent content in MySQL on Documentation</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/docs/dbaas/reference/products/mysql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Backup</title>
      <link>/docs/dbaas/reference/products/mysql/backup/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/backup/</guid>
      <description>&lt;p&gt;Percona Xtrabackup is used to create backups.&lt;/p&gt;&#xA;&lt;p&gt;CCX backups the Primary server. In multi-primary setups the node with the highest &lt;code&gt;wsrep_local_index&lt;/code&gt; is elected.&lt;/p&gt;&#xA;&lt;p&gt;Backups are streamed directly to S3 staroge.&lt;/p&gt;&#xA;&lt;p&gt;Percona Xtrabackup blocks DDL operations during the backup using the &lt;code&gt;--lock-ddl&lt;/code&gt; flag.&#xA;Any attempt to &lt;code&gt;CREATE&lt;/code&gt;, &lt;code&gt;ALTER&lt;/code&gt;, &lt;code&gt;DROP&lt;/code&gt;, &lt;code&gt;TRUNCATE&lt;/code&gt; a table during backup creation will be locked with the status &lt;code&gt;Waiting for backup lock&lt;/code&gt; (see &lt;code&gt;SHOW FULL PROCESSLIST&lt;/code&gt;).&#xA;In this case, wait for the backup to finish and, perform the operation later.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configuration</title>
      <link>/docs/dbaas/reference/products/mysql/configuration/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/configuration/</guid>
      <description>&lt;h2 id=&#34;max_connections&#34;&gt;max_connections&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;75 connections / GB of RAM.&lt;/li&gt;&#xA;&lt;li&gt;Example: 4GB of RAM yields 300 connections.&lt;/li&gt;&#xA;&lt;li&gt;This setting cannot be changed as it affects system stability.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;innodb-settings&#34;&gt;InnoDB settings&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;These setting cannot be changed as it affects system stability.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;innodb_buffer_pool_size&#34;&gt;innodb_buffer_pool_size&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;50% of RAM if total RAM is &amp;gt; 4GB&lt;/li&gt;&#xA;&lt;li&gt;25% of RAM if total RAM is &amp;lt;= 4GB&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;innodb_log_file_size&#34;&gt;innodb_log_file_size&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;1024 MB if innodb_buffer_pool_size &amp;gt;= 8192MB&lt;/li&gt;&#xA;&lt;li&gt;512 MB if innodb_buffer_pool_size &amp;lt; 8192MB&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;innodb_buffer_pool_instances&#34;&gt;innodb_buffer_pool_instances&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;8&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;innodb-options&#34;&gt;InnoDB options&lt;/h3&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;variable_name&lt;/th&gt;&#xA;          &lt;th&gt;variable_value&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_buffer_pool_size&lt;/td&gt;&#xA;          &lt;td&gt;Depends on instance size&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_flush_log_at_trx_commit&lt;/td&gt;&#xA;          &lt;td&gt;2&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_file_per_table&lt;/td&gt;&#xA;          &lt;td&gt;1&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_data_file_path&lt;/td&gt;&#xA;          &lt;td&gt;Depends on instance size&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_read_io_threads&lt;/td&gt;&#xA;          &lt;td&gt;4&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_write_io_threads&lt;/td&gt;&#xA;          &lt;td&gt;4&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_doublewrite&lt;/td&gt;&#xA;          &lt;td&gt;1&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_buffer_pool_instances&lt;/td&gt;&#xA;          &lt;td&gt;Depends on instance size&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_redo_log_capacity&lt;/td&gt;&#xA;          &lt;td&gt;8G&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_thread_concurrency&lt;/td&gt;&#xA;          &lt;td&gt;0&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_flush_method&lt;/td&gt;&#xA;          &lt;td&gt;O_DIRECT&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_autoinc_lock_mode&lt;/td&gt;&#xA;          &lt;td&gt;2&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;innodb_stats_on_metadata&lt;/td&gt;&#xA;          &lt;td&gt;0&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;default_storage_engine&lt;/td&gt;&#xA;          &lt;td&gt;innodb&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h3 id=&#34;general-options&#34;&gt;General options&lt;/h3&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;variable_name&lt;/th&gt;&#xA;          &lt;th&gt;variable_value&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;tmp_table_size&lt;/td&gt;&#xA;          &lt;td&gt;64M&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;max_heap_table_size&lt;/td&gt;&#xA;          &lt;td&gt;64M&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;max_allowed_packet&lt;/td&gt;&#xA;          &lt;td&gt;1G&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;sort_buffer_size&lt;/td&gt;&#xA;          &lt;td&gt;256K&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;read_buffer_size&lt;/td&gt;&#xA;          &lt;td&gt;256K&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;read_rnd_buffer_size&lt;/td&gt;&#xA;          &lt;td&gt;512K&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;memlock&lt;/td&gt;&#xA;          &lt;td&gt;0&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;sysdate_is_now&lt;/td&gt;&#xA;          &lt;td&gt;1&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;max_connections&lt;/td&gt;&#xA;          &lt;td&gt;Depends on instance size&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;thread_cache_size&lt;/td&gt;&#xA;          &lt;td&gt;512&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;table_open_cache&lt;/td&gt;&#xA;          &lt;td&gt;4000&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;table_open_cache_instances&lt;/td&gt;&#xA;          &lt;td&gt;16&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;lower_case_table_names&lt;/td&gt;&#xA;          &lt;td&gt;0&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;storage&#34;&gt;Storage&lt;/h2&gt;&#xA;&lt;h3 id=&#34;recommended-storage-size&#34;&gt;Recommended storage size&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;We recommend a maximum of 100GB storage per GB of RAM.&lt;/li&gt;&#xA;&lt;li&gt;Example: 4GB of RAM yields 400GB of storage.&lt;/li&gt;&#xA;&lt;li&gt;The recommendation is not enforced by the CCX platform.&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Importing Data</title>
      <link>/docs/dbaas/reference/products/mysql/importing-data/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/importing-data/</guid>
      <description>&lt;p&gt;This procedure describes how to import data to a MySQL datastore located in CCX.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The MySQL Datastore on CCX is denoted as the &amp;lsquo;replica&amp;rsquo;&lt;/li&gt;&#xA;&lt;li&gt;The source of the data is denoted as the &amp;lsquo;source&amp;rsquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;note:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;If you dont want to setup replication, then you can chose to only apply the sections:&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a database dump file&lt;/li&gt;&#xA;&lt;li&gt;Apply the dumpfile on the replica&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;preparations&#34;&gt;Preparations&lt;/h2&gt;&#xA;&lt;p&gt;Ensure that the source is configured to act as a replication source:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Importing Data From AWS RDS</title>
      <link>/docs/dbaas/reference/products/mysql/importing-data-from-aws-rds/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/importing-data-from-aws-rds/</guid>
      <description>&lt;p&gt;This procedure describes how to import data from Amazon RDS to a MySQL datastore located in CCX.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The MySQL Datastore on CCX is referred to as the &amp;lsquo;CCX Primary&amp;rsquo;&lt;/li&gt;&#xA;&lt;li&gt;The RDS Source of the data is referred to as the &amp;lsquo;RDS Writer&amp;rsquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Schematically, this is what we will set up:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/dbaas/guides/ccx/mysql-rds-to-ccx-replication.png&#34; alt=&#34;sd&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;warning:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;AWS RDS makes it intentionally difficult to migrate away from. Many procedures on the internet, as well as AWS&amp;rsquo;s own procedures, will not work.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Importing Data From GCP</title>
      <link>/docs/dbaas/reference/products/mysql/importing-data-from-gcp/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/importing-data-from-gcp/</guid>
      <description>&lt;p&gt;This procedure describes how to import data from Google Cloud SQL to a MySQL datastore located in CCX.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The MySQL Datastore on CCX is referred to as the &amp;lsquo;CCX Primary&amp;rsquo;&lt;/li&gt;&#xA;&lt;li&gt;The GCP Source of the data is referred to as the &amp;lsquo;GCP Primary&amp;rsquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Schematically, this is what we will set up:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/dbaas/guides/ccx/gcp-to-ccx-replication.png&#34; alt=&#34;sd&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;note:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;If you don&amp;rsquo;t want to set up replication, you can choose to only apply the following sections:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Limitations</title>
      <link>/docs/dbaas/reference/products/mysql/limitations/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/limitations/</guid>
      <description>&lt;p&gt;Every product has limitations. Here is a list MySQL limitations:&lt;/p&gt;&#xA;&lt;h2 id=&#34;permissions&#34;&gt;Permissions&lt;/h2&gt;&#xA;&lt;p&gt;The privilege system in MySQL is offers more capabilties than MariaDB. Hence, the &amp;lsquo;ccxadmin&amp;rsquo; user has more privileges in MySQL than in MariaDB.&lt;/p&gt;&#xA;&lt;p&gt;The &amp;lsquo;ccxadmin&amp;rsquo; user has the following privileges:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Global / all databases (&lt;code&gt;*.*&lt;/code&gt;):&#xA;&lt;ul&gt;&#xA;&lt;li&gt;SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, REPLICATION_SLAVE_ADMIN, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, GRANT&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This means that the &amp;lsquo;ccxadmin&amp;rsquo; may assign privileges to users on all databases.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Overview</title>
      <link>/docs/dbaas/reference/products/mysql/overview/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/overview/</guid>
      <description>&lt;p&gt;CCX supports two types of MySQL clustering:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;MySQL Replication (Primary-replica configuration)&lt;/li&gt;&#xA;&lt;li&gt;Percona XtraDb Cluster (Multi-primary configuration)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;For general purpose applications we recommend using MySQL Replication, and we only recommend to use Percona XtraDb Cluster if you are migrating from an existing application that uses Percona XtraDb Cluster.&lt;/p&gt;&#xA;&lt;p&gt;If you are new to Percona XtraDb Cluster we stronly recommend to read about the &lt;a href=&#34;https://docs.percona.com/percona-xtradb-cluster/8.0/limitation.html&#34;&gt;Percona XtraDb Cluster limitations&lt;/a&gt; and &lt;a href=&#34;https://docs.percona.com/percona-xtradb-cluster/8.0/intro.html&#34;&gt;Percona XtraDb Cluster Overview&lt;/a&gt; to understand if your application can benefit from Percona XtraDb Cluster.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Restore</title>
      <link>/docs/dbaas/reference/products/mysql/restore/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/restore/</guid>
      <description>&lt;p&gt;There are two options to restore a backup:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Restore a backup on the existing datastore&lt;/li&gt;&#xA;&lt;li&gt;Restore a backup on a new datastore&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Please note that restoring a backup may be a long running process.&lt;/p&gt;&#xA;&lt;p&gt;This option allows to restore a backup with point in time recovery.&#xA;The WAL logs are replayed until the desired PITR.&#xA;Warning! Running several restores may change the timelines.&lt;/p&gt;&#xA;&lt;p&gt;This option allows to restore a backup on a new datastore.&#xA;This option does not currently support PITR.&lt;/p&gt;</description>
    </item>
    <item>
      <title>TLS Connection</title>
      <link>/docs/dbaas/reference/products/mysql/tls-connection/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/tls-connection/</guid>
      <description>&lt;h2 id=&#34;ssl-modes&#34;&gt;SSL Modes&lt;/h2&gt;&#xA;&lt;p&gt;CCX currently supports connections to MySQL in two SSL modes:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;REQUIRED&lt;/code&gt;: This mode requires an SSL connection. If a client attempts to connect without SSL, the server rejects the connection.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;VERIFY_CA&lt;/code&gt;: This mode requires an SSL connection and the server must verify the client&amp;rsquo;s certificate against the CA certificates that it has.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;ca-certificate&#34;&gt;CA Certificate&lt;/h3&gt;&#xA;&lt;p&gt;The Certificate Authority (CA) certificate required for &lt;code&gt;VERIFY_CA&lt;/code&gt; mode can be downloaded from your datastore on CCX using an API call or through the user interface on page &lt;code&gt;https://{your_ccx_domain}/projects/default/data-stores/{datastore_id}/settings&lt;/code&gt;.&#xA;This certificate is used for the &lt;code&gt;VERIFY_CA&lt;/code&gt; SSL mode.&lt;/p&gt;</description>
    </item>
    <item>
      <title>User Management</title>
      <link>/docs/dbaas/reference/products/mysql/user-management/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/mysql/user-management/</guid>
      <description>&lt;p&gt;CCX supports creating database users from the web interface. The database user has the following privileges:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Global / all databases (&lt;code&gt;*.*&lt;/code&gt;):&#xA;&lt;ul&gt;&#xA;&lt;li&gt;SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, REPLICATION_SLAVE_ADMIN, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, GRANT&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This means that the database user may assign privileges to users on all databases.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
