# 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="CHAIN",
big_tables=False,
character_set_server="TIS620",
collation_server="UTF8_LITHUANIAN_CI",
connection_memory_chunk_size=412698435,
connection_memory_limit=3654885365974269440,
default_authentication_plugin="mysql_native_password",
global_connection_memory_limit=5171698294644734976,
global_connection_memory_tracking=False,
transaction_isolation="READ-COMMITED",
innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
mandatory_roles="EXAMPLE-mandatoryRoles-Value",
autocommit=False,
foreign_key_checks=False,
group_replication_consistency="AFTER",
group_concat_max_len=3961954223790995460,
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=False,
sql_warnings=False,
binlog_expire_logs_seconds=784,
binlog_row_metadata="FULL",
binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
binlog_transaction_compression=False,
innodb_buffer_pool_size=8575161600791799808,
innodb_ft_result_cache_limit=4253671434,
max_binlog_cache_size=3642493871887,
max_connect_errors=8011875889525259265,
max_heap_table_size=2592740339715416576,
max_connections=98066,
max_prepared_stmt_count=3283454,
connect_timeout=9379575,
cte_max_recursion_depth=2666730617,
generated_random_password_length=23,
information_schema_stats_expiry=455680,
innodb_buffer_pool_dump_pct=79,
innodb_buffer_pool_instances=19,
innodb_ddl_buffer_size=1118354249,
innodb_ddl_threads=11,
innodb_ft_max_token_size=60,
innodb_ft_min_token_size=0,
innodb_ft_num_word_optimize=359,
innodb_lock_wait_timeout=57846129,
innodb_max_purge_lag=158008595,
innodb_max_purge_lag_delay=669538,
interactive_timeout=6848537,
innodb_stats_persistent_sample_pages=5859487769178407937,
innodb_stats_transient_sample_pages=8925632149830352897,
innodb_strict_mode=True,
max_allowed_packet=919514017,
max_execution_time=4343435157292067840,
mysqlx_connect_timeout=155924302,
mysqlx_document_id_unique_prefix=22865,
mysqlx_idle_worker_thread_timeout=3314,
mysqlx_interactive_timeout=1088445,
mysqlx_max_allowed_packet=716322734,
mysqlx_min_worker_threads=49,
mysqlx_read_timeout=1300476,
mysqlx_wait_timeout=116875,
mysqlx_write_timeout=877999,
net_read_timeout=20296414,
net_write_timeout=3786987,
parser_max_mem_size=2342781530731476096,
query_alloc_block_size=1835752141,
query_prealloc_size=3199605538723594240,
regexp_time_limit=8822848,
sql_mode="EXAMPLE-sqlMode-Value",
tmp_table_size=3182098452251738624,
mysqlx_deflate_default_compression_level=5,
mysqlx_deflate_max_client_compression_level=3,
mysqlx_lz4_max_client_compression_level=2,
mysqlx_lz4_default_compression_level=3,
mysqlx_zstd_max_client_compression_level=6,
mysqlx_zstd_default_compression_level=15,
mysql_zstd_default_compression_level=17,
sort_buffer_size=2710800912905661952,
wait_timeout=199351,
thread_pool_dedicated_listeners=True,
thread_pool_max_transactions_limit=41408,
time_zone="EXAMPLE-timeZone-Value",
block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
binlog_group_commit_sync_delay=539975,
binlog_group_commit_sync_no_delay_count=78625,
replica_net_timeout=20787458,
require_secure_transport=False,
innodb_redo_log_capacity=98722729642,
thread_pool_transaction_delay=238784,
thread_pool_query_threads_per_group=929,
explain_format="TREE",
explicit_defaults_for_timestamp=False,
sql_generate_invisible_primary_key=True,
temptable_max_ram=1740403681124849152,
innodb_change_buffering="CHANGES",
innodb_adaptive_hash_index=False,
innodb_undo_log_truncate=True,
table_definition_cache=39671,
table_open_cache=290040,
relay_log_space_limit=7783538668862545920,
optimizer_switch="EXAMPLE-optimizerSwitch-Value",
replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
replica_parallel_workers=685,
skip_name_resolve=False,
max_user_connections=165866341,
join_buffer_size=1784569147893227648,
max_seeks_for_key=2853671894217657345,
range_optimizer_max_mem_size=5181377484215790592,
auto_increment_increment=57409,
auto_increment_offset=59174,
innodb_autoinc_lock_mode=481,
innodb_rollback_on_timeout=True,
innodb_online_alter_log_max_size=2251226528108585472,
innodb_sort_buffer_size=46825902,
innodb_numa_interleave=False,
thread_pool_size=275,
long_query_time=17672195),
parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
freeform_tags={
'EXAMPLE_KEY_dRIO2': 'EXAMPLE_VALUE_3MB5sh1lPQfmo4XitGft'},
defined_tags={
'EXAMPLE_KEY_2uXr8': {
'EXAMPLE_KEY_MchlW': 'EXAMPLE--Value'}}),
opc_request_id="WRPSSGTZTMMJ78NYBIWF<unique_ID>",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(create_configuration_response.data)