# 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=True,
character_set_server="LATIN7",
collation_server="LATIN1_GENERAL_CI",
connection_memory_chunk_size=335170940,
connection_memory_limit=3890587408053446656,
default_authentication_plugin="sha256_password",
global_connection_memory_limit=4639855830645416960,
global_connection_memory_tracking=True,
transaction_isolation="SERIALIZABLE",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=True,
foreign_key_checks=True,
group_replication_consistency="AFTER",
group_concat_max_len=104017623362500612,
innodb_ft_enable_stopword=True,
innodb_log_writer_threads=False,
local_infile=True,
mysql_firewall_mode=False,
mysqlx_enable_hello_notice=True,
sql_require_primary_key=True,
sql_warnings=False,
binlog_expire_logs_seconds=695,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=8043926871286576128,
innodb_ft_result_cache_limit=2339252289,
max_binlog_cache_size=19917787752741,
max_connect_errors=765895602898839553,
max_heap_table_size=1005611283614070016,
max_connections=52817,
max_prepared_stmt_count=185647,
connect_timeout=5401089,
cte_max_recursion_depth=3469269641,
generated_random_password_length=18,
information_schema_stats_expiry=7090845,
innodb_buffer_pool_dump_pct=44,
innodb_buffer_pool_instances=5,
innodb_ddl_buffer_size=3763412277,
innodb_ddl_threads=49,
innodb_ft_max_token_size=42,
innodb_ft_min_token_size=2,
innodb_ft_num_word_optimize=875,
innodb_lock_wait_timeout=728510147,
innodb_max_purge_lag=3484933698,
innodb_max_purge_lag_delay=902231,
interactive_timeout=16682950,
innodb_stats_persistent_sample_pages=7629297173895984129,
innodb_stats_transient_sample_pages=6736277261370637313,
innodb_strict_mode=True,
max_allowed_packet=261422328,
max_execution_time=1001908751331557376,
mysqlx_connect_timeout=119051066,
mysqlx_document_id_unique_prefix=18501,
mysqlx_idle_worker_thread_timeout=2304,
mysqlx_interactive_timeout=1990057,
mysqlx_max_allowed_packet=877752816,
mysqlx_min_worker_threads=50,
mysqlx_read_timeout=965741,
mysqlx_wait_timeout=2000360,
mysqlx_write_timeout=391913,
net_read_timeout=16326398,
net_write_timeout=2915900,
parser_max_mem_size=5633201146245665408,
query_alloc_block_size=710031272,
query_prealloc_size=2936746787912496640,
regexp_time_limit=1337748165,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=1253064174386436864,
mysqlx_deflate_default_compression_level=3,
mysqlx_deflate_max_client_compression_level=8,
mysqlx_lz4_max_client_compression_level=6,
mysqlx_lz4_default_compression_level=8,
mysqlx_zstd_max_client_compression_level=13,
mysqlx_zstd_default_compression_level=13,
mysql_zstd_default_compression_level=1,
sort_buffer_size=4179380417289543168,
wait_timeout=749551,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=68798,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=404625,
binlog_group_commit_sync_no_delay_count=87585,
replica_net_timeout=9232628,
require_secure_transport=True,
innodb_redo_log_capacity=83048497996,
thread_pool_transaction_delay=124554,
thread_pool_query_threads_per_group=555,
explain_format="TRADITIONAL",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=5499878034065016832,
innodb_change_buffering="PURGES",
innodb_adaptive_hash_index=True,
innodb_undo_log_truncate=True,
table_definition_cache=161873,
table_open_cache=81479,
relay_log_space_limit=9177394847068141568,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=478,
skip_name_resolve=False,
max_user_connections=2242955285,
join_buffer_size=7399606630763631744,
max_seeks_for_key=7225035782482848769,
range_optimizer_max_mem_size=8129034512030242816,
auto_increment_increment=59927,
auto_increment_offset=30334,
innodb_autoinc_lock_mode=653,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=2277027595782543616,
innodb_sort_buffer_size=37390456,
innodb_numa_interleave=True,
thread_pool_size=188,
long_query_time=12466242),
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_zJ6Lk': 'EXAMPLE_VALUE_ItEBLzFAjzn98dAWSe4p'},
defined_tags={
'EXAMPLE_KEY_PIxTT': {
'EXAMPLE_KEY_EG0Cb': 'EXAMPLE--Value'}}),
opc_request_id="HFWQ3EB9DN85KAGGEDMB<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)