# 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_INSENSITIVE_LOWERCASE"),
variables=oci.mysql.models.ConfigurationVariables(
completion_type="RELEASE",
big_tables=True,
character_set_server="UTF16LE",
collation_server="UTF32_LITHUANIAN_CI",
connection_memory_chunk_size=57816155,
connection_memory_limit=1480897372942441728,
default_authentication_plugin="caching_sha2_password",
global_connection_memory_limit=7230732321474563072,
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=True,
group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
group_concat_max_len=422799413237106692,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=714,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=1086682358989026048,
innodb_ft_result_cache_limit=612980774,
max_binlog_cache_size=13647186004827,
max_connect_errors=8108268949123919873,
max_heap_table_size=372008216510779776,
max_connections=36379,
max_prepared_stmt_count=544144,
connect_timeout=2433321,
cte_max_recursion_depth=310631578,
generated_random_password_length=120,
information_schema_stats_expiry=23720830,
innodb_buffer_pool_dump_pct=1,
innodb_buffer_pool_instances=8,
innodb_ddl_buffer_size=2617070594,
innodb_ddl_threads=44,
innodb_ft_max_token_size=10,
innodb_ft_min_token_size=0,
innodb_ft_num_word_optimize=165,
innodb_lock_wait_timeout=168552672,
innodb_max_purge_lag=1947007311,
innodb_max_purge_lag_delay=20822,
interactive_timeout=28536521,
innodb_stats_persistent_sample_pages=3922796524617157633,
innodb_stats_transient_sample_pages=3832557048311859201,
innodb_strict_mode=True,
max_allowed_packet=1068724432,
max_execution_time=1099012232475008000,
mysqlx_connect_timeout=599173030,
mysqlx_document_id_unique_prefix=12615,
mysqlx_idle_worker_thread_timeout=2412,
mysqlx_interactive_timeout=553136,
mysqlx_max_allowed_packet=667795389,
mysqlx_min_worker_threads=97,
mysqlx_read_timeout=1373870,
mysqlx_wait_timeout=960296,
mysqlx_write_timeout=1351471,
net_read_timeout=18221439,
net_write_timeout=23685836,
parser_max_mem_size=2113772805056059776,
query_alloc_block_size=4102561392,
query_prealloc_size=3795753414261392896,
regexp_time_limit=1835268390,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=8060206580745116672,
mysqlx_deflate_default_compression_level=3,
mysqlx_deflate_max_client_compression_level=7,
mysqlx_lz4_max_client_compression_level=6,
mysqlx_lz4_default_compression_level=4,
mysqlx_zstd_max_client_compression_level=10,
mysqlx_zstd_default_compression_level=3,
mysql_zstd_default_compression_level=11,
sort_buffer_size=8115483831457246208,
wait_timeout=1738577,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=828,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=58092,
binlog_group_commit_sync_no_delay_count=30210,
replica_net_timeout=17516389,
require_secure_transport=True,
innodb_redo_log_capacity=38624086644,
thread_pool_transaction_delay=149365,
thread_pool_query_threads_per_group=184,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=6458528642318777344,
innodb_change_buffering="INSERTS",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=True,
table_definition_cache=102179,
table_open_cache=353015,
relay_log_space_limit=2007722746490256384,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=601,
skip_name_resolve=False,
max_user_connections=2751946269,
join_buffer_size=785783000074049664,
max_seeks_for_key=4000417377172836353,
range_optimizer_max_mem_size=5330232573030767616,
auto_increment_increment=27699,
auto_increment_offset=45100,
innodb_autoinc_lock_mode=651,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=3198224262234328064,
innodb_sort_buffer_size=35359336,
innodb_numa_interleave=False,
thread_pool_size=221,
long_query_time=16686665),
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_yS1pv': 'EXAMPLE_VALUE_4MaKT0CR0lFgRqIvJ25r'},
defined_tags={
'EXAMPLE_KEY_Phe1f': {
'EXAMPLE_KEY_swH7Y': 'EXAMPLE--Value'}}),
opc_request_id="G2HEE1LFXVEJOYRFZCE5<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)