# 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="NO_CHAIN",
big_tables=True,
character_set_server="CP1256",
collation_server="UCS2_TURKISH_CI",
connection_memory_chunk_size=138395587,
connection_memory_limit=5758192892733893632,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=7850731894274118656,
global_connection_memory_tracking=False,
transaction_isolation="SERIALIZABLE",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=True,
group_replication_consistency="BEFORE",
group_concat_max_len=3406921167731350532,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=False,
mysql_firewall_mode=True,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=False,
sql_warnings=False,
binlog_expire_logs_seconds=830,
binlog_row_metadata="MINIMAL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=True,
innodb_buffer_pool_size=918554536262057088,
innodb_ft_result_cache_limit=4153555590,
max_binlog_cache_size=34500537192192,
max_connect_errors=4222517600040548353,
max_heap_table_size=8703002472910262272,
max_connections=84529,
max_prepared_stmt_count=1180154,
connect_timeout=443310,
cte_max_recursion_depth=2155250035,
generated_random_password_length=41,
information_schema_stats_expiry=21186763,
innodb_buffer_pool_dump_pct=25,
innodb_buffer_pool_instances=26,
innodb_ddl_buffer_size=1942114613,
innodb_ddl_threads=15,
innodb_ft_max_token_size=24,
innodb_ft_min_token_size=11,
innodb_ft_num_word_optimize=197,
innodb_lock_wait_timeout=743158053,
innodb_max_purge_lag=1457020339,
innodb_max_purge_lag_delay=804610,
interactive_timeout=10286263,
innodb_stats_persistent_sample_pages=2238790093473928193,
innodb_stats_transient_sample_pages=7962321085737998337,
innodb_strict_mode=False,
max_allowed_packet=403570174,
max_execution_time=5158025527178536960,
mysqlx_connect_timeout=305601029,
mysqlx_document_id_unique_prefix=40939,
mysqlx_idle_worker_thread_timeout=921,
mysqlx_interactive_timeout=1639897,
mysqlx_max_allowed_packet=668782496,
mysqlx_min_worker_threads=75,
mysqlx_read_timeout=737013,
mysqlx_wait_timeout=948892,
mysqlx_write_timeout=2000360,
net_read_timeout=10581161,
net_write_timeout=16326398,
parser_max_mem_size=8681073057329224320,
query_alloc_block_size=3316679795,
query_prealloc_size=2647942214622839296,
regexp_time_limit=327363719,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=5745584616156284928,
mysqlx_deflate_default_compression_level=7,
mysqlx_deflate_max_client_compression_level=3,
mysqlx_lz4_max_client_compression_level=15,
mysqlx_lz4_default_compression_level=6,
mysqlx_zstd_max_client_compression_level=16,
mysqlx_zstd_default_compression_level=13,
mysql_zstd_default_compression_level=13,
sort_buffer_size=1684682223716498688,
wait_timeout=1605067,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=72865,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=868798,
binlog_group_commit_sync_no_delay_count=4625,
replica_net_timeout=27707591,
require_secure_transport=True,
innodb_redo_log_capacity=77774296797,
thread_pool_transaction_delay=195514,
thread_pool_query_threads_per_group=2395,
explain_format="TREE",
explicit_defaults_for_timestamp=True,
sql_generate_invisible_primary_key=False,
temptable_max_ram=6188919724947668992,
innodb_change_buffering="NONE",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=433469,
table_open_cache=283170,
relay_log_space_limit=4578250281458464768,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=937,
skip_name_resolve=False,
max_user_connections=640960097,
join_buffer_size=3225611946462790784,
max_seeks_for_key=1909854279009497089,
range_optimizer_max_mem_size=1054266433108209664,
auto_increment_increment=24116,
auto_increment_offset=59927,
innodb_autoinc_lock_mode=945,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=4785623844069613568,
innodb_sort_buffer_size=50496106,
innodb_numa_interleave=False,
thread_pool_size=259,
long_query_time=15375739),
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_0zJ6L': 'EXAMPLE_VALUE_kItEBLzFAjzn98dAWSe4'},
defined_tags={
'EXAMPLE_KEY_bPIxT': {
'EXAMPLE_KEY_pEG0C': 'EXAMPLE--Value'}}),
opc_request_id="THFWQ3EB9DN85KAGGEDM<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)