# 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="CP866",
collation_server="UTF8_TURKISH_CI",
connection_memory_chunk_size=347981201,
connection_memory_limit=5105794425111393280,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=1347635399357197056,
global_connection_memory_tracking=True,
transaction_isolation="REPEATABLE-READ",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=False,
group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
group_concat_max_len=4289048441654193156,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=True,
local_infile=False,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=False,
sql_warnings=False,
binlog_expire_logs_seconds=673,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=2313553486084071936,
innodb_ft_result_cache_limit=864506393,
max_binlog_cache_size=38863849740828,
max_connect_errors=7584506022487802881,
max_heap_table_size=1941960057890801408,
max_connections=27932,
max_prepared_stmt_count=2006030,
connect_timeout=4228644,
cte_max_recursion_depth=1492893267,
generated_random_password_length=24,
information_schema_stats_expiry=17013410,
innodb_buffer_pool_dump_pct=67,
innodb_buffer_pool_instances=32,
innodb_ddl_buffer_size=1491377112,
innodb_ddl_threads=29,
innodb_ft_max_token_size=45,
innodb_ft_min_token_size=5,
innodb_ft_num_word_optimize=518,
innodb_lock_wait_timeout=420797382,
innodb_max_purge_lag=2437740541,
innodb_max_purge_lag_delay=111340,
interactive_timeout=4843999,
innodb_stats_persistent_sample_pages=3354023301386842113,
innodb_stats_transient_sample_pages=2880917631839776769,
innodb_strict_mode=False,
max_allowed_packet=713190876,
max_execution_time=7811646694857264128,
mysqlx_connect_timeout=668725675,
mysqlx_document_id_unique_prefix=54465,
mysqlx_idle_worker_thread_timeout=415,
mysqlx_interactive_timeout=256285,
mysqlx_max_allowed_packet=195970597,
mysqlx_min_worker_threads=97,
mysqlx_read_timeout=1748733,
mysqlx_wait_timeout=1006083,
mysqlx_write_timeout=837179,
net_read_timeout=8690837,
net_write_timeout=27878069,
parser_max_mem_size=4986705180019037824,
query_alloc_block_size=3669003463,
query_prealloc_size=4124389078314357248,
regexp_time_limit=265521275,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=2172273014017483520,
mysqlx_deflate_default_compression_level=6,
mysqlx_deflate_max_client_compression_level=7,
mysqlx_lz4_max_client_compression_level=1,
mysqlx_lz4_default_compression_level=1,
mysqlx_zstd_max_client_compression_level=12,
mysqlx_zstd_default_compression_level=6,
mysql_zstd_default_compression_level=9,
sort_buffer_size=8972189614313406464,
wait_timeout=2075781,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=93959,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=679675,
binlog_group_commit_sync_no_delay_count=37040,
replica_net_timeout=15420652,
require_secure_transport=False,
innodb_redo_log_capacity=40300635340,
thread_pool_transaction_delay=231798,
thread_pool_query_threads_per_group=1192,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=4254088089401396736,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=False,
table_definition_cache=493852,
table_open_cache=492324,
relay_log_space_limit=5783230052304126976,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=26,
skip_name_resolve=False,
max_user_connections=3889932248,
join_buffer_size=6599589017754653824,
max_seeks_for_key=6185677201939840001,
range_optimizer_max_mem_size=3967470291682144256,
auto_increment_increment=58612,
auto_increment_offset=11868,
innodb_autoinc_lock_mode=111,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=803252476249515392,
innodb_sort_buffer_size=59394848,
innodb_numa_interleave=False,
thread_pool_size=493,
long_query_time=5880905),
options=[
oci.mysql.models.Option(
name="EXAMPLE-name-Value",
value="EXAMPLE-value-Value")],
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_hv1pr': 'EXAMPLE_VALUE_aH3zR2MdULDuaZEGufIO'},
defined_tags={
'EXAMPLE_KEY_BZOn0': {
'EXAMPLE_KEY_nlmKc': 'EXAMPLE--Value'}}),
opc_request_id="5ALPIH8N3SWAJMSHPDKP<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)