# 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="NO_CHAIN",
big_tables=False,
connection_memory_chunk_size=264656567,
connection_memory_limit=5082413452996207616,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=5848263798121863168,
global_connection_memory_tracking=False,
transaction_isolation="READ-COMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=True,
group_replication_consistency="EVENTUAL",
innodb_ft_enable_stopword=False,
innodb_log_writer_threads=True,
local_infile=True,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=755,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=8960721187112890368,
innodb_ft_result_cache_limit=2804949353,
max_binlog_cache_size=65657598380079,
max_connect_errors=6055925199060217857,
max_heap_table_size=6459870808769727488,
max_connections=35742,
max_prepared_stmt_count=2382156,
connect_timeout=22150952,
cte_max_recursion_depth=2861293450,
generated_random_password_length=101,
information_schema_stats_expiry=19092921,
innodb_buffer_pool_dump_pct=99,
innodb_buffer_pool_instances=11,
innodb_ddl_buffer_size=600391474,
innodb_ddl_threads=4,
innodb_ft_max_token_size=72,
innodb_ft_min_token_size=12,
innodb_ft_num_word_optimize=607,
innodb_lock_wait_timeout=701613807,
innodb_max_purge_lag=4249995245,
innodb_max_purge_lag_delay=97434,
interactive_timeout=3669345,
innodb_stats_persistent_sample_pages=2889306246261959681,
innodb_stats_transient_sample_pages=5548173996507821057,
max_allowed_packet=353657050,
max_execution_time=1775319325852203008,
mysqlx_connect_timeout=455362753,
mysqlx_document_id_unique_prefix=41339,
mysqlx_idle_worker_thread_timeout=2578,
mysqlx_interactive_timeout=2129559,
mysqlx_max_allowed_packet=955788917,
mysqlx_min_worker_threads=17,
mysqlx_read_timeout=1303861,
mysqlx_wait_timeout=431757,
mysqlx_write_timeout=218352,
net_read_timeout=30864174,
net_write_timeout=20578789,
parser_max_mem_size=998391481485091328,
query_alloc_block_size=4152372630,
query_prealloc_size=8712992094385236992,
regexp_time_limit=1556007583,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=6098776025655454720,
mysqlx_deflate_default_compression_level=1,
mysqlx_deflate_max_client_compression_level=4,
mysqlx_lz4_max_client_compression_level=14,
mysqlx_lz4_default_compression_level=3,
mysqlx_zstd_max_client_compression_level=3,
mysqlx_zstd_default_compression_level=7,
mysql_zstd_default_compression_level=17,
sort_buffer_size=658425459337262848,
wait_timeout=559867,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=20139,
time_zone="EXAMPLE-timeZone-Value"),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_LmtkX': 'EXAMPLE_VALUE_oBLrbPg8WPZN7tJ8VUCA'},
defined_tags={
'EXAMPLE_KEY_tkEjg': {
'EXAMPLE_KEY_LP0GB': 'EXAMPLE--Value'}}),
opc_request_id="SGTICKNNBZHXZYUN5XVM<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)