# 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="RELEASE",
big_tables=True,
character_set_server="SWE7",
collation_server="UTF16_VIETNAMESE_CI",
connection_memory_chunk_size=369738234,
connection_memory_limit=4681149383817542656,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=8309431256865824768,
global_connection_memory_tracking=False,
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=5812552331295967236,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=True,
local_infile=False,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=False,
sql_require_primary_key=True,
sql_warnings=True,
binlog_expire_logs_seconds=534,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=5194095373319492608,
innodb_ft_result_cache_limit=1455199885,
max_binlog_cache_size=14819263817861,
max_connect_errors=8706069893503213569,
max_heap_table_size=1662105348669762560,
max_connections=10444,
max_prepared_stmt_count=3138866,
connect_timeout=9869731,
cte_max_recursion_depth=2786415121,
generated_random_password_length=57,
information_schema_stats_expiry=20819028,
innodb_buffer_pool_dump_pct=11,
innodb_buffer_pool_instances=25,
innodb_ddl_buffer_size=3328617228,
innodb_ddl_threads=22,
innodb_ft_max_token_size=17,
innodb_ft_min_token_size=2,
innodb_ft_num_word_optimize=275,
innodb_lock_wait_timeout=235343389,
innodb_max_purge_lag=3769762134,
innodb_max_purge_lag_delay=971639,
interactive_timeout=17741292,
innodb_stats_persistent_sample_pages=2326553369435669505,
innodb_stats_transient_sample_pages=9030998905493980161,
innodb_strict_mode=True,
max_allowed_packet=206522636,
max_execution_time=2188217346749555712,
mysqlx_connect_timeout=648960260,
mysqlx_document_id_unique_prefix=95,
mysqlx_idle_worker_thread_timeout=2659,
mysqlx_interactive_timeout=1749577,
mysqlx_max_allowed_packet=127956044,
mysqlx_min_worker_threads=14,
mysqlx_read_timeout=1515636,
mysqlx_wait_timeout=1935126,
mysqlx_write_timeout=359168,
net_read_timeout=21595953,
net_write_timeout=15436297,
parser_max_mem_size=8450191074229742208,
query_alloc_block_size=4256933933,
query_prealloc_size=2280902621048220672,
regexp_time_limit=2085181228,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=3345226841028857344,
mysqlx_deflate_default_compression_level=2,
mysqlx_deflate_max_client_compression_level=5,
mysqlx_lz4_max_client_compression_level=4,
mysqlx_lz4_default_compression_level=7,
mysqlx_zstd_max_client_compression_level=10,
mysqlx_zstd_default_compression_level=11,
mysql_zstd_default_compression_level=7,
sort_buffer_size=3703372840416581632,
wait_timeout=1504604,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=60648,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=170376,
binlog_group_commit_sync_no_delay_count=49131,
replica_net_timeout=4368682,
require_secure_transport=False,
innodb_redo_log_capacity=4308516662,
thread_pool_transaction_delay=8928,
thread_pool_query_threads_per_group=1974,
explain_format="JSON",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=True,
temptable_max_ram=8708823822628391936,
innodb_change_buffering="ALL",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=False,
table_definition_cache=288004,
table_open_cache=272655,
relay_log_space_limit=8721782983122941952,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=172,
skip_name_resolve=False,
max_user_connections=3710199349,
join_buffer_size=5991243942269840512,
max_seeks_for_key=6606816947187585025,
range_optimizer_max_mem_size=2733109300224430080,
auto_increment_increment=49588,
auto_increment_offset=41206,
innodb_autoinc_lock_mode=736,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=7346583164696926208,
innodb_sort_buffer_size=54447528,
innodb_numa_interleave=False,
thread_pool_size=113,
long_query_time=1442462),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_oxyaT': 'EXAMPLE_VALUE_j5kH0v3voZ24wsRKlYE8'},
defined_tags={
'EXAMPLE_KEY_p6I7k': {
'EXAMPLE_KEY_rV1Fo': 'EXAMPLE--Value'}}),
opc_request_id="P0KXJ7IR3DALWTWDSD4X<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)