# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
import oci
# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()
# Initialize service client with default config file
mysql_client = oci.mysql.MysqlaasClient(config)
# Send the request to service, some parameters are not required, see API
# doc for more info
create_configuration_response = mysql_client.create_configuration(
create_configuration_details=oci.mysql.models.CreateConfigurationDetails(
compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
shape_name="EXAMPLE-shapeName-Value",
description="EXAMPLE-description-Value",
display_name="EXAMPLE-displayName-Value",
init_variables=oci.mysql.models.InitializationVariables(
lower_case_table_names="CASE_SENSITIVE"),
variables=oci.mysql.models.ConfigurationVariables(
completion_type="NO_CHAIN",
big_tables=False,
character_set_server="GB18030",
collation_server="UTF8MB4_PL_0900_AS_CS",
connection_memory_chunk_size=321196349,
connection_memory_limit=6669801577346543616,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=4928998097114857472,
global_connection_memory_tracking=True,
transaction_isolation="READ-UNCOMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=True,
group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
group_concat_max_len=5088714018991077380,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=74,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=390800768815249472,
innodb_ft_result_cache_limit=1231870367,
max_binlog_cache_size=53933334322564,
max_connect_errors=8107513248636017665,
max_heap_table_size=5966729263300391936,
max_connections=16942,
max_prepared_stmt_count=1798819,
connect_timeout=9035476,
cte_max_recursion_depth=3333500906,
generated_random_password_length=112,
information_schema_stats_expiry=7224092,
innodb_buffer_pool_dump_pct=90,
innodb_buffer_pool_instances=32,
innodb_ddl_buffer_size=3547673050,
innodb_ddl_threads=58,
innodb_ft_max_token_size=31,
innodb_ft_min_token_size=12,
innodb_ft_num_word_optimize=126,
innodb_lock_wait_timeout=98430989,
innodb_max_purge_lag=2077145945,
innodb_max_purge_lag_delay=267990,
interactive_timeout=13413691,
innodb_stats_persistent_sample_pages=8952242213881435137,
innodb_stats_transient_sample_pages=8410456918935249921,
innodb_strict_mode=True,
max_allowed_packet=732460702,
max_execution_time=8913938611245930496,
mysqlx_connect_timeout=609373700,
mysqlx_document_id_unique_prefix=64881,
mysqlx_idle_worker_thread_timeout=516,
mysqlx_interactive_timeout=345956,
mysqlx_max_allowed_packet=277375030,
mysqlx_min_worker_threads=53,
mysqlx_read_timeout=1900537,
mysqlx_wait_timeout=732705,
mysqlx_write_timeout=850170,
net_read_timeout=9672902,
net_write_timeout=5569011,
parser_max_mem_size=4341932415378355328,
query_alloc_block_size=3568884832,
query_prealloc_size=2103475616985537792,
regexp_time_limit=1599959986,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=2733332904579392000,
mysqlx_deflate_default_compression_level=3,
mysqlx_deflate_max_client_compression_level=6,
mysqlx_lz4_max_client_compression_level=8,
mysqlx_lz4_default_compression_level=15,
mysqlx_zstd_max_client_compression_level=6,
mysqlx_zstd_default_compression_level=16,
mysql_zstd_default_compression_level=7,
sort_buffer_size=131841556799402544,
wait_timeout=1806411,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=44886,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=511305,
binlog_group_commit_sync_no_delay_count=27945,
replica_net_timeout=14733426,
require_secure_transport=False,
innodb_redo_log_capacity=81418628313,
thread_pool_transaction_delay=288997,
thread_pool_query_threads_per_group=1664,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=2087069528794544640,
innodb_change_buffering="ALL",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=True,
table_definition_cache=165998,
table_open_cache=302372,
relay_log_space_limit=8333366044009501696,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=98,
skip_name_resolve=True,
max_user_connections=359906683,
join_buffer_size=5025369056631610496,
max_seeks_for_key=1543446148672153601,
range_optimizer_max_mem_size=5035420967999071232,
auto_increment_increment=34314,
auto_increment_offset=3474,
innodb_autoinc_lock_mode=373,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=3290838295284218880,
innodb_sort_buffer_size=3402856,
innodb_numa_interleave=True,
thread_pool_size=474,
long_query_time=28892749),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_T25Xp': 'EXAMPLE_VALUE_Hn1eLIHdJofvxd5PGsU6'},
defined_tags={
'EXAMPLE_KEY_WOdd4': {
'EXAMPLE_KEY_czcjy': 'EXAMPLE--Value'}}),
opc_request_id="2XYMOKHS7EUKAZUZBRFC<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)