JSONを介してMySQL DBシステムへの接続を作成するには

コマンド・プロンプトを開き、oci dbtools connection create-mysql-databaseを実行して、JSONファイルの指定に従って新しいデータベース・ツール接続を作成します:

oci dbtools connection create-mysql-database --from-json "file://<path-to-json>"
ノート

この例では、プライベート・エンドポイントおよびボールトの必要なシークレットがすでに存在することを前提としています。

たとえば、JSONファイルで必要なすべての詳細を指定します:

{  
    "compartmentId": "ocid1.compartment.oc1..example1example25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabwk3zz",  
    "userName": "example-user",  
    "userPasswordSecretId": "ocid1.vaultsecret.oc1.phx.example1secrettxiu7mwuabcdefxl67fj5niy4akfzsababcdefzf3423ya",  
    "connectionString": "mysql://10.0.0.42:3306/exampledatabase",  
    "privateEndpointId": "cid1.databasetoolsprivateendpoint.oc1.phx.exampleendpoint25qrlpo4agcmothkbgqgmuz2zzum45ibplooqtabcdefg",  
    "displayName": "example-connection-from-json"
}
ノート

この例では、前述のように、現在の作業ディレクトリにexample.jsonというJSONファイルがあります。
oci dbtools connection create-mysql-database --from-json "file://example.json"