# 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="CHAIN",
big_tables=True,
character_set_server="CP1257",
collation_server="CP1250_POLISH_CI",
connection_memory_chunk_size=171291738,
connection_memory_limit=6042106494861082624,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=5933559142811541504,
global_connection_memory_tracking=True,
transaction_isolation="READ-COMMITTED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=False,
group_replication_consistency="BEFORE",
group_concat_max_len=3063728131020276740,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=True,
local_infile=True,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=True,
binlog_expire_logs_seconds=639,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=450836561219258112,
innodb_ft_result_cache_limit=4206433992,
max_binlog_cache_size=11976789440017,
max_connect_errors=8388766049314457601,
max_heap_table_size=1627480866881505536,
max_connections=37410,
max_prepared_stmt_count=1810336,
connect_timeout=17762330,
cte_max_recursion_depth=1565795372,
generated_random_password_length=134,
information_schema_stats_expiry=4543675,
innodb_buffer_pool_dump_pct=93,
innodb_buffer_pool_instances=19,
innodb_ddl_buffer_size=387116046,
innodb_ddl_threads=10,
innodb_ft_max_token_size=57,
innodb_ft_min_token_size=5,
innodb_ft_num_word_optimize=400,
innodb_lock_wait_timeout=495976772,
innodb_max_purge_lag=520422603,
innodb_max_purge_lag_delay=48056,
interactive_timeout=9980172,
innodb_stats_persistent_sample_pages=1150619668314539009,
innodb_stats_transient_sample_pages=958211571288361985,
innodb_strict_mode=True,
max_allowed_packet=900853349,
max_execution_time=7796017259951091712,
mysqlx_connect_timeout=314094414,
mysqlx_document_id_unique_prefix=43035,
mysqlx_idle_worker_thread_timeout=2048,
mysqlx_interactive_timeout=1815673,
mysqlx_max_allowed_packet=83296203,
mysqlx_min_worker_threads=41,
mysqlx_read_timeout=299311,
mysqlx_wait_timeout=884854,
mysqlx_write_timeout=1914322,
net_read_timeout=27632703,
net_write_timeout=26644175,
parser_max_mem_size=7723795267827137152,
query_alloc_block_size=2750425328,
query_prealloc_size=3313357125658424320,
regexp_time_limit=1543159081,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=5897800681974406144,
mysqlx_deflate_default_compression_level=6,
mysqlx_deflate_max_client_compression_level=1,
mysqlx_lz4_max_client_compression_level=15,
mysqlx_lz4_default_compression_level=2,
mysqlx_zstd_max_client_compression_level=8,
mysqlx_zstd_default_compression_level=5,
mysql_zstd_default_compression_level=10,
sort_buffer_size=3238944780589025280,
wait_timeout=1223550,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=33684,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=166365,
binlog_group_commit_sync_no_delay_count=29571,
replica_net_timeout=29095260,
require_secure_transport=True,
innodb_redo_log_capacity=30297957962,
thread_pool_transaction_delay=214033,
thread_pool_query_threads_per_group=1383,
explain_format="TREE",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=False,
temptable_max_ram=4294318350723056128,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=True,
table_definition_cache=322457,
table_open_cache=75309,
relay_log_space_limit=205466657871911936,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=572,
skip_name_resolve=True,
max_user_connections=3622015699,
join_buffer_size=4984228790069415040,
max_seeks_for_key=8602822283558183937,
range_optimizer_max_mem_size=2459688311618165760,
auto_increment_increment=50786,
auto_increment_offset=15431,
innodb_autoinc_lock_mode=892,
innodb_rollback_on_timeout=False,
innodb_online_alter_log_max_size=773116938235684480,
innodb_sort_buffer_size=1693366,
innodb_numa_interleave=True,
thread_pool_size=430,
long_query_time=29461037),
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_uPp3C': 'EXAMPLE_VALUE_SrcRNCHV7pHLBnaM5xyQ'},
defined_tags={
'EXAMPLE_KEY_cSD2m': {
'EXAMPLE_KEY_WoC7Z': 'EXAMPLE--Value'}}),
opc_request_id="HWED1UZWWA2LX2HUMIAN<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)