# 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,
character_set_server="CP850",
collation_server="CP932_BIN",
connection_memory_chunk_size=293169974,
connection_memory_limit=6066512638833384448,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=5082565052008532992,
global_connection_memory_tracking=True,
transaction_isolation="READ-COMMITED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=False,
group_replication_consistency="AFTER",
group_concat_max_len=5785130955195867140,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=True,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=False,
binlog_expire_logs_seconds=694,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=3048235506685207552,
innodb_ft_result_cache_limit=1945011747,
max_binlog_cache_size=58621683883524,
max_connect_errors=2051163770242060289,
max_heap_table_size=3260890399687277056,
max_connections=91856,
max_prepared_stmt_count=3574792,
connect_timeout=4772748,
cte_max_recursion_depth=3722158898,
generated_random_password_length=195,
information_schema_stats_expiry=21876492,
innodb_buffer_pool_dump_pct=22,
innodb_buffer_pool_instances=43,
innodb_ddl_buffer_size=1808022087,
innodb_ddl_threads=34,
innodb_ft_max_token_size=64,
innodb_ft_min_token_size=2,
innodb_ft_num_word_optimize=440,
innodb_lock_wait_timeout=505923894,
innodb_max_purge_lag=4293876537,
innodb_max_purge_lag_delay=315100,
interactive_timeout=14195178,
innodb_stats_persistent_sample_pages=4449473406636557313,
innodb_stats_transient_sample_pages=5161965284077167617,
innodb_strict_mode=True,
max_allowed_packet=538531492,
max_execution_time=472219782691607552,
mysqlx_connect_timeout=720538075,
mysqlx_document_id_unique_prefix=40243,
mysqlx_idle_worker_thread_timeout=2916,
mysqlx_interactive_timeout=1398757,
mysqlx_max_allowed_packet=122448199,
mysqlx_min_worker_threads=90,
mysqlx_read_timeout=680712,
mysqlx_wait_timeout=1815263,
mysqlx_write_timeout=1586000,
net_read_timeout=3174244,
net_write_timeout=16687631,
parser_max_mem_size=6050799691136924288,
query_alloc_block_size=4238050012,
query_prealloc_size=1574456702061910784,
regexp_time_limit=247260148,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=8560786345591238656,
mysqlx_deflate_default_compression_level=1,
mysqlx_deflate_max_client_compression_level=3,
mysqlx_lz4_max_client_compression_level=5,
mysqlx_lz4_default_compression_level=11,
mysqlx_zstd_max_client_compression_level=6,
mysqlx_zstd_default_compression_level=16,
mysql_zstd_default_compression_level=11,
sort_buffer_size=3541034575650766336,
wait_timeout=1252933,
thread_pool_dedicated_listeners=False,
thread_pool_max_transactions_limit=65648,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=756144,
binlog_group_commit_sync_no_delay_count=1101,
replica_net_timeout=17781817,
require_secure_transport=True,
innodb_redo_log_capacity=29608262757,
thread_pool_transaction_delay=42633,
thread_pool_query_threads_per_group=2493,
explain_format="TREE",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=True,
temptable_max_ram=4702402538426304512,
innodb_change_buffering="DELETES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=37833,
table_open_cache=450545,
relay_log_space_limit=7130895575398051840,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=409,
skip_name_resolve=False,
max_user_connections=1608999270,
join_buffer_size=2904493396472654976,
max_seeks_for_key=8376768996171282433,
range_optimizer_max_mem_size=2861703660539967488,
auto_increment_increment=13355,
auto_increment_offset=38730,
innodb_autoinc_lock_mode=786,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=8875365881513032704,
innodb_sort_buffer_size=67078291,
innodb_numa_interleave=False,
thread_pool_size=449,
long_query_time=10561673),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_8XV3p': 'EXAMPLE_VALUE_7jTiO2GXQ1ijjNvVpQqn'},
defined_tags={
'EXAMPLE_KEY_q8yTs': {
'EXAMPLE_KEY_zV2kL': 'EXAMPLE--Value'}}),
opc_request_id="EQPWEWGTLTSLPPUTIVFV<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)