# 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="CHAIN",
big_tables=True,
character_set_server="DEC8",
collation_server="UTF8_VIETNAMESE_CI",
connection_memory_chunk_size=203496122,
connection_memory_limit=9084810789654228992,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=9163234626466994176,
global_connection_memory_tracking=False,
transaction_isolation="REPEATABLE-READ",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=False,
group_replication_consistency="BEFORE",
group_concat_max_len=7153097081860430852,
innodb_ft_enable_stopword=False,
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=57,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=3669721144856531968,
innodb_ft_result_cache_limit=2667260850,
max_binlog_cache_size=27419154327959,
max_connect_errors=4670417410155831297,
max_heap_table_size=370217283137144192,
max_connections=33248,
max_prepared_stmt_count=2250496,
connect_timeout=27766841,
cte_max_recursion_depth=3845318618,
generated_random_password_length=116,
information_schema_stats_expiry=4775293,
innodb_buffer_pool_dump_pct=32,
innodb_buffer_pool_instances=1,
innodb_ddl_buffer_size=636045951,
innodb_ddl_threads=5,
innodb_ft_max_token_size=50,
innodb_ft_min_token_size=8,
innodb_ft_num_word_optimize=62,
innodb_lock_wait_timeout=1006973351,
innodb_max_purge_lag=3686145579,
innodb_max_purge_lag_delay=216737,
interactive_timeout=22656736,
innodb_stats_persistent_sample_pages=2176373033589071873,
innodb_stats_transient_sample_pages=3437297345583114241,
innodb_strict_mode=True,
max_allowed_packet=835202449,
max_execution_time=2374997010644099072,
mysqlx_connect_timeout=58079649,
mysqlx_document_id_unique_prefix=12072,
mysqlx_idle_worker_thread_timeout=647,
mysqlx_interactive_timeout=1374099,
mysqlx_max_allowed_packet=752768840,
mysqlx_min_worker_threads=30,
mysqlx_read_timeout=591152,
mysqlx_wait_timeout=759968,
mysqlx_write_timeout=848544,
net_read_timeout=8783745,
net_write_timeout=30380160,
parser_max_mem_size=4635742068540646016,
query_alloc_block_size=649486255,
query_prealloc_size=1315697189133261568,
regexp_time_limit=389508017,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=7245523854576756736,
mysqlx_deflate_default_compression_level=2,
mysqlx_deflate_max_client_compression_level=8,
mysqlx_lz4_max_client_compression_level=9,
mysqlx_lz4_default_compression_level=8,
mysqlx_zstd_max_client_compression_level=17,
mysqlx_zstd_default_compression_level=11,
mysql_zstd_default_compression_level=9,
sort_buffer_size=7025918464087002112,
wait_timeout=1181112,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=64486,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=626782,
binlog_group_commit_sync_no_delay_count=29828,
replica_net_timeout=15852618,
require_secure_transport=False,
innodb_redo_log_capacity=104864303419,
thread_pool_transaction_delay=198752,
thread_pool_query_threads_per_group=2627,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=5991447021479003136,
innodb_change_buffering="CHANGES",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=False,
table_definition_cache=414604,
table_open_cache=347634,
relay_log_space_limit=430841257868147712,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=77,
skip_name_resolve=True,
max_user_connections=1058562359,
join_buffer_size=3379703394670316672,
max_seeks_for_key=6813471487753779201,
range_optimizer_max_mem_size=8143457804496480256,
auto_increment_increment=58573,
auto_increment_offset=61957,
innodb_autoinc_lock_mode=692,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=6439897170439691264,
innodb_sort_buffer_size=47700754,
innodb_numa_interleave=True,
thread_pool_size=451,
long_query_time=15349679),
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_9vYwy': 'EXAMPLE_VALUE_vyrN94nwi8m1xYenCXJd'},
defined_tags={
'EXAMPLE_KEY_70Fcp': {
'EXAMPLE_KEY_KcM4g': 'EXAMPLE--Value'}}),
opc_request_id="N2IPLDLA9GXX2L5NVZXX<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)