dds_umn_1115

Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
This commit is contained in:
2025-02-26 09:31:42 +00:00
committed by zuul
parent bfc6e41869
commit 843c771689
38 changed files with 851 additions and 453 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,75 @@
<a name="dds_01_0061"></a><a name="dds_01_0061"></a>
<h1 class="topictitle1">Version Information</h1>
<div id="body0000002075386360"><p id="dds_01_0061__p4701154121918">Document Database Service (DDS) is a MongDB-compatible cloud database service that is secure, high available, and reliable. It provides DB instance creation, scaling, disaster recovery, backup, restoration, monitoring, and alarm reporting functions with just a few clicks on the DDS console.</p>
<div class="section" id="dds_01_0061__section15371539409"><h4 class="sectiontitle">Release Notes</h4><p id="dds_01_0061__p149441110409">DDS is compatible with community versions 3.4, 4.0, 4.2 and 4.4. For details, see <a href="dds_01_0060.html">Mapping Between DDS Versions and Community Versions</a>.</p>
</div>
<div class="section" id="dds_01_0061__section18694113413"><h4 class="sectiontitle">Lifecycle Planning of DDS Versions</h4><div class="note" id="dds_01_0061__note996492216412"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_01_0061__ul12503165583617"><li id="dds_01_0061__li6503145511363">End of Marketing (EOM): indicates that the sale of this version is stopped.</li><li id="dds_01_0061__li1350325513615">End of Service &amp; Support (EOS): indicates that the service of this version is stopped. You are advised to use the engine of the latest version when running jobs. </li></ul>
</div></div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_01_0061__table03719327427" frame="border" border="1" rules="all"><caption><b>Table 1 </b>DDS version lifecycle planning</caption><thead align="left"><tr id="dds_01_0061__row183724323421"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.3.2.5.1.1"><p id="dds_01_0061__p13736040132114">Version</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.3.2.5.1.2"><p id="dds_01_0061__p1674200141316">Status</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.3.2.5.1.3"><p id="dds_01_0061__p1273614019214">Planned EOM Time</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.3.2.5.1.4"><p id="dds_01_0061__p12737124012112">Planned EOS Time</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_01_0061__row1837293224213"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dds_01_0061__p071105554314">3.2</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dds_01_0061__p1271175517431">Unavailable</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dds_01_0061__p57117555435">March 2018</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dds_01_0061__p271155512432">September 2024</p>
</td>
</tr>
<tr id="dds_01_0061__row163726327425"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dds_01_0061__p971115514431">3.4</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dds_01_0061__p137117554435">Commercial use</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dds_01_0061__p771145574317">February 2020</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dds_01_0061__p177135516433">June 2025</p>
</td>
</tr>
<tr id="dds_01_0061__row1937216328429"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dds_01_0061__p1271155514439">4.0</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dds_01_0061__p1271175516437">Commercial use</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dds_01_0061__p6719551437">January 2022</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dds_01_0061__p107105518431">April 2027</p>
</td>
</tr>
<tr id="dds_01_0061__row5372183284210"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dds_01_0061__p1471145518434">4.2</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dds_01_0061__p14717557435">Commercial use</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dds_01_0061__p571175515436">November 2022</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dds_01_0061__p87113557432">April 2028</p>
</td>
</tr>
<tr id="dds_01_0061__row14372232174220"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dds_01_0061__p1471185504314">4.4</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dds_01_0061__p1371955184317">Commercial use</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dds_01_0061__p6711655174316">September 2023</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dds_01_0061__p18717556436">April 2029</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_user_guide.html">Introduction</a></div>
</div>
</div>

View File

@ -21,32 +21,32 @@
</div> </div>
</li></ul> </li></ul>
<ul id="dds_02_0028__ul16741818193920"><li id="dds_02_0028__li067514182397">In Windows, upload the root certificate using the remote connection tool.</li></ul> <ul id="dds_02_0028__ul16741818193920"><li id="dds_02_0028__li067514182397">In Windows, upload the root certificate using the remote connection tool.</li></ul>
</p></li><li id="dds_02_0028__li13341346136"><span>Connect to a <span class="keyword" id="dds_02_0028__keyword35982035017">DDS DB instance</span>.</span><p><ul id="dds_02_0028__ul16334634151317"><li id="dds_02_0028__li5334103421319">Method 1: Using standard parameters<p id="dds_02_0028__p2334734121318"><a name="dds_02_0028__li5334103421319"></a><a name="li5334103421319"></a><strong id="dds_02_0028__b33351034111319">mongo --host</strong> &lt;<em id="dds_02_0028__i93351934161311">DB_HOST</em>&gt; <strong id="dds_02_0028__b6335203491317">--port</strong> &lt;<em id="dds_02_0028__i19335193412136">DB_PORT</em>&gt; <strong id="dds_02_0028__b16335193431315">-u</strong> &lt;<em id="dds_02_0028__i2335153491311">DB_USER</em>&gt; <strong id="dds_02_0028__b33351034111311">-p</strong> <strong id="dds_02_0028__b1733519349132">--authenticationDatabase</strong><strong id="dds_02_0028__b5335183451315"> admin </strong><strong id="dds_02_0028__b333514342138">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0028__i933553419136">FILE_PATH</em>&gt; <strong id="dds_02_0028__b12335173416132">--sslAllowInvalidHostnames</strong></p> </p></li><li id="dds_02_0028__li13341346136"><span>Connect to a <span class="keyword" id="dds_02_0028__keyword35982035017">DDS DB instance</span>.</span><p><ul id="dds_02_0028__ul16334634151317"><li id="dds_02_0028__li5334103421319">Method 1: Using standard parameters<pre class="codeblock" id="dds_02_0028__codeblock1512147151619"><strong id="dds_02_0028__b5521347181611">mongo --host</strong> &lt;<em id="dds_02_0028__i6521947121619">DB_HOST</em>&gt; <strong id="dds_02_0028__b3521164751613">--port</strong> &lt;<em id="dds_02_0028__i752174771617">DB_PORT</em>&gt; <strong id="dds_02_0028__b1652174751616">-u</strong> &lt;<em id="dds_02_0028__i7521647131618">DB_USER</em>&gt; <strong id="dds_02_0028__b8521144718163">-p</strong> <strong id="dds_02_0028__b752113476164">--authenticationDatabase</strong><strong id="dds_02_0028__b052112471167"> admin </strong><strong id="dds_02_0028__b352124721617">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0028__i14521194771614">FILE_PATH</em>&gt; <strong id="dds_02_0028__b452117476168">--sslAllowInvalidHostnames</strong></pre>
<p id="dds_02_0028__p1133683414132">Enter the database account password when prompted:</p> <p id="dds_02_0028__p1133683414132">Enter the database account password when prompted:</p>
<pre class="screen" id="dds_02_0028__screen133619348139">Enter password:</pre> <pre class="screen" id="dds_02_0028__screen133619348139">Enter password:</pre>
</li><li id="dds_02_0028__li16336143431315">Method 2: Using standard URI format<p id="dds_02_0028__p10336103413131"><a name="dds_02_0028__li16336143431315"></a><a name="li16336143431315"></a><strong id="dds_02_0028__b2336173411318">mongo</strong> <strong id="dds_02_0028__b833693471310">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0028__b1336133418138">@</strong><em id="dds_02_0028__i12336163431310">&lt;</em><em id="dds_02_0028__i16336133416138">DB_HOST</em><em id="dds_02_0028__i183363345135">&gt;</em><strong id="dds_02_0028__b1933673416135">:</strong><em id="dds_02_0028__i5336034151317">&lt;</em><em id="dds_02_0028__i133361634171319">DB_PORT</em><em id="dds_02_0028__i83367347138">&gt;</em><strong id="dds_02_0028__b8336934161319">/test?authSource=admin</strong> <strong id="dds_02_0028__b1133653481315">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0028__i18336113491310">FILE_PATH</em>&gt; <strong id="dds_02_0028__b1133613420135">--sslAllowInvalidHostnames</strong></p> </li><li id="dds_02_0028__li16336143431315">Method 2: Using standard URI format<pre class="codeblock" id="dds_02_0028__codeblock1883015671611"><strong id="dds_02_0028__b19839456171618">mongo</strong> <strong id="dds_02_0028__b17839185612162">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0028__b2839115691615">@</strong><em id="dds_02_0028__i1083955631611">&lt;</em><em id="dds_02_0028__i14839356101612">DB_HOST</em><em id="dds_02_0028__i5839156141616">&gt;</em><strong id="dds_02_0028__b11839195610162">:</strong><em id="dds_02_0028__i6839195681618">&lt;</em><em id="dds_02_0028__i1683995615161">DB_PORT</em><em id="dds_02_0028__i5839145613165">&gt;</em><strong id="dds_02_0028__b13839115620165">/test?authSource=admin</strong> <strong id="dds_02_0028__b88391756111618">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0028__i883915567166">FILE_PATH</em>&gt; <strong id="dds_02_0028__b883910567161">--sslAllowInvalidHostnames</strong></pre>
<p id="dds_02_0028__p1416193382811">The connection information can be obtained in the <span class="uicontrol" id="dds_02_0028__uicontrol65901721185511"><b>Address</b></span> column on the <span class="uicontrol" id="dds_02_0028__uicontrol859242117554"><b>Instance Management</b></span> page.</p> <p id="dds_02_0028__p1416193382811">The connection information can be obtained in the <span class="uicontrol" id="dds_02_0028__uicontrol65901721185511"><b>Address</b></span> column on the <span class="uicontrol" id="dds_02_0028__uicontrol859242117554"><b>Instance Management</b></span> page.</p>
</li></ul> </li></ul>
<div class="note" id="dds_02_0028__note1733615346138"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0028__ul83371634141320"><li id="dds_02_0028__li1433710341139">A single node instance uses the management IP address to generate SSL certificate. <strong id="dds_02_0028__b11237947397">--sslAllowInvalidHostnames</strong> is needed for the SSL connection over private networks.</li><li id="dds_02_0028__li19337193415138"><strong id="dds_02_0028__b56174501216">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0028__uicontrol197545151219"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0028__uicontrol16713452123"><b>Connections</b></span> page.</li><li id="dds_02_0028__li1933793411132"><strong id="dds_02_0028__b13405171813136">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0028__uicontrol1440620180133"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0028__uicontrol240641815139"><b>Basic Information</b></span> area on the <strong id="dds_02_0028__b114078184135">Connections</strong> page.</li><li id="dds_02_0028__li1580548181613"><strong id="dds_02_0028__b122771121719">DB_HOST</strong> and <strong id="dds_02_0028__b4971121661715">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0028__li13338153441318"><strong id="dds_02_0028__en-us_topic_0085335422_en-us_topic_0031147618_b84235270617104">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0028__en-us_topic_0085335422_b84235270619744">rwuser</strong>.</li><li id="dds_02_0028__li104164519302"><strong id="dds_02_0028__b14184563014"><em id="dds_02_0028__i194174593017">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0028__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="dds_02_0028__li1733810349130"><strong id="dds_02_0028__b1035019117512">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul> <div class="note" id="dds_02_0028__note1733615346138"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0028__ul83371634141320"><li id="dds_02_0028__li1433710341139">A single node instance uses the management IP address to generate SSL certificate. <strong id="dds_02_0028__b11237947397">--sslAllowInvalidHostnames</strong> is needed for the SSL connection over private networks.</li><li id="dds_02_0028__li19337193415138"><strong id="dds_02_0028__b56174501216">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0028__uicontrol197545151219"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0028__uicontrol16713452123"><b>Connections</b></span> page.</li><li id="dds_02_0028__li1933793411132"><strong id="dds_02_0028__b13405171813136">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0028__uicontrol1440620180133"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0028__uicontrol240641815139"><b>Basic Information</b></span> area on the <strong id="dds_02_0028__b114078184135">Connections</strong> page.</li><li id="dds_02_0028__li1580548181613"><strong id="dds_02_0028__b122771121719">DB_HOST</strong> and <strong id="dds_02_0028__b4971121661715">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0028__li13338153441318"><strong id="dds_02_0028__en-us_topic_0085335422_en-us_topic_0031147618_b84235270617104">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0028__en-us_topic_0085335422_b84235270619744">rwuser</strong>.</li><li id="dds_02_0028__li104164519302"><strong id="dds_02_0028__b14184563014"><em id="dds_02_0028__i194174593017">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0028__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="dds_02_0028__li1733810349130"><strong id="dds_02_0028__b1035019117512">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul>
</div></div> </div></div>
<ul id="dds_02_0028__ul233816341135"><li id="dds_02_0028__li6338113411137">Connect to the DB instance using standard parameters. The following is an example command:<p id="dds_02_0028__p153386346132"><a name="dds_02_0028__li6338113411137"></a><a name="li6338113411137"></a><strong id="dds_02_0028__b133384348133">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="dds_02_0028__b103381234111314">--sslAllowInvalidHostnames</strong></p> <ul id="dds_02_0028__ul233816341135"><li id="dds_02_0028__li6338113411137">Connect to the DB instance using standard parameters. The following is an example command:<pre class="codeblock" id="dds_02_0028__codeblock141181234171"><strong id="dds_02_0028__b11191314173">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="dds_02_0028__b181194311716">--sslAllowInvalidHostnames</strong></pre>
</li><li id="dds_02_0028__li1433815346138">Connect to the DB instance using standard URI format. The following is an example command:<p id="dds_02_0028__p23391634101316"><a name="dds_02_0028__li1433815346138"></a><a name="li1433815346138"></a><strong id="dds_02_0028__b183396347139">mongo</strong> <strong id="dds_02_0028__b1333919341135">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0028__b1339734181317">192.168.1.6</strong><strong id="dds_02_0028__b16339183461310">:</strong><strong id="dds_02_0028__b333943431312">8635</strong><strong id="dds_02_0028__b6339103413136">/test?authSource=admin</strong><strong id="dds_02_0028__b1333903415130"> -</strong><strong id="dds_02_0028__b63391534181317">-ssl --sslCAFile</strong> <strong id="dds_02_0028__b9339113451319">/tmp/ca.crt</strong> <strong id="dds_02_0028__b033973410135">--sslAllowInvalidHostnames</strong></p> </li><li id="dds_02_0028__li1433815346138">Connect to the DB instance using standard URI format. The following is an example command:<pre class="codeblock" id="dds_02_0028__codeblock6367682174"><strong id="dds_02_0028__b133671780171">mongo</strong> <strong id="dds_02_0028__b163678816175">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0028__b173671286176">192.168.1.6</strong><strong id="dds_02_0028__b336717821719">:</strong><strong id="dds_02_0028__b133671582170">8635</strong><strong id="dds_02_0028__b1236788191716">/test?authSource=admin</strong><strong id="dds_02_0028__b136710814177"> -</strong><strong id="dds_02_0028__b736718821710">-ssl --sslCAFile</strong> <strong id="dds_02_0028__b11367981179">/tmp/ca.crt</strong> <strong id="dds_02_0028__b7367198111712">--sslAllowInvalidHostnames</strong></pre>
</li></ul> </li></ul>
</p></li><li id="dds_02_0028__li833993451320"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="dds_02_0028__screen143397345133">replica:PRIMARY&gt;</pre> </p></li><li id="dds_02_0028__li833993451320"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="dds_02_0028__screen143397345133">replica:PRIMARY&gt;</pre>
</p></li></ol> </p></li></ol>
</div> </div>
<div class="section" id="dds_02_0028__en-us_topic_0085335422_sfc3bfb212a8440799f49320d91fc096c"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="dds_02_0028__en-us_topic_0085335422_note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="dds_02_0028__p8755899182235">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p> <div class="section" id="dds_02_0028__en-us_topic_0085335422_sfc3bfb212a8440799f49320d91fc096c"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="dds_02_0028__en-us_topic_0085335422_note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="dds_02_0028__p8755899182235">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p>
</div></div> </div></div>
<ol id="dds_02_0028__en-us_topic_0085335422_o12386b3d9147482881ddfdfd9a3f787c"><li id="dds_02_0028__en-us_topic_0085335422_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to a <span class="keyword" id="dds_02_0028__keyword929914461813">DDS DB instance</span>.</span><p><ul id="dds_02_0028__ul7567173152111"><li id="dds_02_0028__li856712311210">Method 1: Using standard parameters<p id="dds_02_0028__p1546173416213"><a name="dds_02_0028__li856712311210"></a><a name="li856712311210"></a><strong id="dds_02_0028__b1567143119217">mongo --host</strong> &lt;<em id="dds_02_0028__i456717314219">DB_HOST</em>&gt; <strong id="dds_02_0028__b256763113211">--port</strong> &lt;<em id="dds_02_0028__i3567631142114">DB_PORT</em>&gt; <strong id="dds_02_0028__b16567731192119">-u</strong> &lt;<em id="dds_02_0028__i65672318217">DB_USER</em>&gt; <strong id="dds_02_0028__b637789133717">-p</strong> <strong id="dds_02_0028__b1156711315219">--authenticationDatabase</strong> <strong id="dds_02_0028__b2033119156376">admin</strong></p> <ol id="dds_02_0028__en-us_topic_0085335422_o12386b3d9147482881ddfdfd9a3f787c"><li id="dds_02_0028__en-us_topic_0085335422_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to a <span class="keyword" id="dds_02_0028__keyword929914461813">DDS DB instance</span>.</span><p><ul id="dds_02_0028__ul7567173152111"><li id="dds_02_0028__li856712311210">Method 1: Using standard parameters<pre class="codeblock" id="dds_02_0028__codeblock895271941710"><strong id="dds_02_0028__b12961219101718">mongo --host</strong> &lt;<em id="dds_02_0028__i696191914177">DB_HOST</em>&gt; <strong id="dds_02_0028__b1996191920170">--port</strong> &lt;<em id="dds_02_0028__i1396120197170">DB_PORT</em>&gt; <strong id="dds_02_0028__b1696131961716">-u</strong> &lt;<em id="dds_02_0028__i1696118190173">DB_USER</em>&gt; <strong id="dds_02_0028__b19611419131713">-p</strong> <strong id="dds_02_0028__b296119198173">--authenticationDatabase</strong> <strong id="dds_02_0028__b3961131913179">admin</strong></pre>
<p id="dds_02_0028__p3759945202019">Enter the database account password when prompted:</p> <p id="dds_02_0028__p3759945202019">Enter the database account password when prompted:</p>
<pre class="screen" id="dds_02_0028__screen6759145122016">Enter password:</pre> <pre class="screen" id="dds_02_0028__screen6759145122016">Enter password:</pre>
</li><li id="dds_02_0028__li956719313217">Method 2: Using standard URI format<p id="dds_02_0028__p18264365212"><a name="dds_02_0028__li956719313217"></a><a name="li956719313217"></a><strong id="dds_02_0028__b1851992173718"><strong id="dds_02_0028__b2051972173710">mongo</strong></strong> <strong id="dds_02_0028__b165200219378">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0028__b1692415451252">@</strong><em id="dds_02_0028__i15671331162116">&lt;</em><em id="dds_02_0028__i956773112112">DB_HOST</em><em id="dds_02_0028__i20567173113218">&gt;</em><strong id="dds_02_0028__b656763118210">:</strong><em id="dds_02_0028__i9567143122110">&lt;</em><em id="dds_02_0028__i1156723132117">DB_PORT</em><em id="dds_02_0028__i75674315214">&gt;</em><strong id="dds_02_0028__b4981817583">/test?authSource=admin</strong></p> </li><li id="dds_02_0028__li956719313217">Method 2: Using standard URI format<pre class="codeblock" id="dds_02_0028__codeblock897252711170"><strong id="dds_02_0028__b4981192717174"><strong id="dds_02_0028__b15981172741712">mongo</strong></strong> <strong id="dds_02_0028__b19811527181710">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0028__b498117279179">@</strong><em id="dds_02_0028__i2098192718176">&lt;</em><em id="dds_02_0028__i798142761717">DB_HOST</em><em id="dds_02_0028__i11981627101711">&gt;</em><strong id="dds_02_0028__b1398110274178">:</strong><em id="dds_02_0028__i3981152721715">&lt;</em><em id="dds_02_0028__i2981122716176">DB_PORT</em><em id="dds_02_0028__i898162719175">&gt;</em><strong id="dds_02_0028__b12981152781716">/test?authSource=admin</strong></pre>
<p id="dds_02_0028__p318624972916">The connection information can be obtained in the <span class="uicontrol" id="dds_02_0028__uicontrol437183035518"><b>Address</b></span> column on the <span class="uicontrol" id="dds_02_0028__uicontrol1938830195512"><b>Instance Management</b></span> page.</p> <p id="dds_02_0028__p318624972916">The connection information can be obtained in the <span class="uicontrol" id="dds_02_0028__uicontrol437183035518"><b>Address</b></span> column on the <span class="uicontrol" id="dds_02_0028__uicontrol1938830195512"><b>Instance Management</b></span> page.</p>
</li></ul> </li></ul>
<div class="note" id="dds_02_0028__note839816116261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0028__ul83946567225"><li id="dds_02_0028__li146091023142317"><strong id="dds_02_0028__b195163306137">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0028__uicontrol151693031314"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0028__uicontrol1551715302131"><b>Connections</b></span> page.</li><li id="dds_02_0028__li2508131610233"><strong id="dds_02_0028__b4286842101312">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0028__uicontrol14288204216135"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0028__uicontrol528944221312"><b>Basic Information</b></span> area on the <strong id="dds_02_0028__b12891425133">Connections</strong> page.</li><li id="dds_02_0028__li1048914566199"><strong id="dds_02_0028__b9532115751917">DB_HOST</strong> and <strong id="dds_02_0028__b353255771914">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0028__li2512016202314"><strong id="dds_02_0028__b487053851718">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0028__b10870173819178">rwuser</strong>.</li><li id="dds_02_0028__li203011059313"><strong id="dds_02_0028__b0301145143113"><em id="dds_02_0028__i730113583115">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0028__li205880623112">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul> <div class="note" id="dds_02_0028__note839816116261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0028__ul83946567225"><li id="dds_02_0028__li146091023142317"><strong id="dds_02_0028__b195163306137">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0028__uicontrol151693031314"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0028__uicontrol1551715302131"><b>Connections</b></span> page.</li><li id="dds_02_0028__li2508131610233"><strong id="dds_02_0028__b4286842101312">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0028__uicontrol14288204216135"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0028__uicontrol528944221312"><b>Basic Information</b></span> area on the <strong id="dds_02_0028__b12891425133">Connections</strong> page.</li><li id="dds_02_0028__li1048914566199"><strong id="dds_02_0028__b9532115751917">DB_HOST</strong> and <strong id="dds_02_0028__b353255771914">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0028__li2512016202314"><strong id="dds_02_0028__b487053851718">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0028__b10870173819178">rwuser</strong>.</li><li id="dds_02_0028__li203011059313"><strong id="dds_02_0028__b0301145143113"><em id="dds_02_0028__i730113583115">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0028__li205880623112">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul>
</div></div> </div></div>
<ul id="dds_02_0028__ul106082418273"><li id="dds_02_0028__li45912247273">Connect to the DB instance using standard parameters. The following is an example command:<p id="dds_02_0028__p1138102682712"><a name="dds_02_0028__li45912247273"></a><a name="li45912247273"></a><strong id="dds_02_0028__b85912412716">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></p> <ul id="dds_02_0028__ul106082418273"><li id="dds_02_0028__li45912247273">Connect to the DB instance using standard parameters. The following is an example command:<pre class="codeblock" id="dds_02_0028__codeblock666144017173"><strong id="dds_02_0028__b86694041713">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></pre>
</li><li id="dds_02_0028__li35911241274">Connect to the DB instance using standard URI format. The following is an example command:<p id="dds_02_0028__p43699277273"><a name="dds_02_0028__li35911241274"></a><a name="li35911241274"></a><strong id="dds_02_0028__b6128732153717"><strong id="dds_02_0028__b1112863218378">mongo</strong></strong> <strong id="dds_02_0028__b012812320375">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0028__b145952420279">192.168.1.6:8635</strong><strong id="dds_02_0028__b95942410270">/test?authSource=admin</strong></p> </li><li id="dds_02_0028__li35911241274">Connect to the DB instance using standard URI format. The following is an example command:<pre class="codeblock" id="dds_02_0028__codeblock21543458175"><strong id="dds_02_0028__b815519451177"><strong id="dds_02_0028__b161554454178">mongo</strong></strong> <strong id="dds_02_0028__b8155945161719">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0028__b015534512178">192.168.1.6:8635</strong><strong id="dds_02_0028__b17155124516173">/test?authSource=admin</strong></pre>
</li></ul> </li></ul>
</p></li><li id="dds_02_0028__en-us_topic_0085335422_li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="dds_02_0028__en-us_topic_0085335422_screen141854665519">replica:PRIMARY&gt;</pre> </p></li><li id="dds_02_0028__en-us_topic_0085335422_li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="dds_02_0028__en-us_topic_0085335422_screen141854665519">replica:PRIMARY&gt;</pre>
</p></li></ol> </p></li></ol>

View File

@ -44,16 +44,16 @@
</div></div> </div></div>
</div> </div>
</li><li id="dds_02_0047__li97711751103717">In Windows, upload the root certificate using the remote connection tool.</li></ul> </li><li id="dds_02_0047__li97711751103717">In Windows, upload the root certificate using the remote connection tool.</li></ul>
</p></li><li id="dds_02_0047__li15455181914394"><span>Connect to the DB instance in the directory where the MongoDB client is located.</span><p><ul id="dds_02_0047__ul104559191391"><li id="dds_02_0047__li20455419113913">Method 1: Using standard parameters<p id="dds_02_0047__p845514199396"><a name="dds_02_0047__li20455419113913"></a><a name="li20455419113913"></a><strong id="dds_02_0047__b1245571913391">mongo --host</strong> &lt;<em id="dds_02_0047__i54562197392">DB_HOST</em>&gt; <strong id="dds_02_0047__b1045691917395">--port</strong> &lt;<em id="dds_02_0047__i194566199394">DB_PORT</em>&gt; <strong id="dds_02_0047__b845641914399">-u</strong> &lt;<em id="dds_02_0047__i84566199390">DB_USER</em>&gt; <strong id="dds_02_0047__b124561319163919">-p</strong> <strong id="dds_02_0047__b945631916395">--authenticationDatabase</strong><strong id="dds_02_0047__b8456919123910"> admin </strong><strong id="dds_02_0047__b345641917391">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0047__i345621913395">FILE_PATH</em>&gt; <strong id="dds_02_0047__b1645601913399">--sslAllowInvalidHostnames</strong></p> </p></li><li id="dds_02_0047__li15455181914394"><span>Connect to the DB instance in the directory where the MongoDB client is located.</span><p><ul id="dds_02_0047__ul104559191391"><li id="dds_02_0047__li20455419113913">Method 1: Using standard parameters<pre class="codeblock" id="dds_02_0047__codeblock1512316447145"><strong id="dds_02_0047__b313324412142">mongo --host</strong> &lt;<em id="dds_02_0047__i313354415142">DB_HOST</em>&gt; <strong id="dds_02_0047__b9133114471416">--port</strong> &lt;<em id="dds_02_0047__i6133144121420">DB_PORT</em>&gt; <strong id="dds_02_0047__b141336446145">-u</strong> &lt;<em id="dds_02_0047__i16133164471411">DB_USER</em>&gt; <strong id="dds_02_0047__b4133134412142">-p</strong> <strong id="dds_02_0047__b113364431420">--authenticationDatabase</strong><strong id="dds_02_0047__b1313315449146"> admin </strong><strong id="dds_02_0047__b1913354431420">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0047__i213374411417">FILE_PATH</em>&gt; <strong id="dds_02_0047__b16133134418145">--sslAllowInvalidHostnames</strong></pre>
<p id="dds_02_0047__p245651914391">Enter the database account password when prompted:</p> <p id="dds_02_0047__p245651914391">Enter the database account password when prompted:</p>
<pre class="screen" id="dds_02_0047__screen145671916398">Enter password:</pre> <pre class="screen" id="dds_02_0047__screen145671916398">Enter password:</pre>
</li><li id="dds_02_0047__li1645681913915">Method 2: Using standard URI format<p id="dds_02_0047__p245613197396"><a name="dds_02_0047__li1645681913915"></a><a name="li1645681913915"></a><strong id="dds_02_0047__b1145651973918"><strong id="dds_02_0047__b1456131983910">mongo</strong></strong> <strong id="dds_02_0047__b9456191953910">"mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0047__b14456201973912">@</strong><em id="dds_02_0047__i1345671983915">&lt;</em><em id="dds_02_0047__i104579197396">DB_HOST</em><em id="dds_02_0047__i1745720191393">&gt;</em><strong id="dds_02_0047__b1445791933913">:</strong><em id="dds_02_0047__i445701917399">&lt;</em><em id="dds_02_0047__i145731933919">DB_PORT</em><em id="dds_02_0047__i17457181933917">&gt;</em><strong id="dds_02_0047__b545721919393">/test?authSource=admin&amp;replicaSet=replic</strong><strong id="dds_02_0047__b1745715192398">a"</strong> <strong id="dds_02_0047__b174577197398">--</strong><strong id="dds_02_0047__b6458121912396">ssl --sslCAFile</strong> <em id="dds_02_0047__i6458191917397">&lt;</em><em id="dds_02_0047__i2045881920391">FILE_PATH</em><em id="dds_02_0047__i34581119143910">&gt;</em> <strong id="dds_02_0047__b204581119173912">--sslAllowInvalidHostnames</strong></p> </li><li id="dds_02_0047__li1645681913915">Method 2: Using standard URI format<pre class="codeblock" id="dds_02_0047__codeblock191375112148"><strong id="dds_02_0047__b1014105181416"><strong id="dds_02_0047__b2014125116143">mongo</strong></strong> <strong id="dds_02_0047__b814155111143">"mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0047__b10141151171418">@</strong><em id="dds_02_0047__i131485111141">&lt;</em><em id="dds_02_0047__i51465141412">DB_HOST</em><em id="dds_02_0047__i81425121418">&gt;</em><strong id="dds_02_0047__b414351171413">:</strong><em id="dds_02_0047__i6141151191416">&lt;</em><em id="dds_02_0047__i1614145119142">DB_PORT</em><em id="dds_02_0047__i161412510144">&gt;</em><strong id="dds_02_0047__b11420514145">/test?authSource=admin&amp;replicaSet=replic</strong><strong id="dds_02_0047__b61445119141">a"</strong> <strong id="dds_02_0047__b914175131413">--</strong><strong id="dds_02_0047__b914951121412">ssl --sslCAFile</strong> <em id="dds_02_0047__i814165112149">&lt;</em><em id="dds_02_0047__i1814175118142">FILE_PATH</em><em id="dds_02_0047__i51485120148">&gt;</em> <strong id="dds_02_0047__b1714651171413">--sslAllowInvalidHostnames</strong></pre>
<p id="dds_02_0047__p977444184011">To obtain the public connection address, click the instance name and choose <strong id="dds_02_0047__b331511393217">Connections</strong>. The address is displayed in <strong id="dds_02_0047__b143164333212">Public Network Connection Address</strong> field on the <strong id="dds_02_0047__b19316173113218">Public Connection</strong> tab.</p> <p id="dds_02_0047__p977444184011">To obtain the public connection address, click the instance name and choose <strong id="dds_02_0047__b331511393217">Connections</strong>. The address is displayed in <strong id="dds_02_0047__b143164333212">Public Network Connection Address</strong> field on the <strong id="dds_02_0047__b19316173113218">Public Connection</strong> tab.</p>
</li></ul> </li></ul>
<div class="note" id="dds_02_0047__note12458119143913"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0047__ul1945891912390"><li id="dds_02_0047__li0458151916393">A replica set instance uses the management IP address to generate SSL certificate. <strong id="dds_02_0047__b6606191518343">--sslAllowInvalidHostnames</strong> is needed for the SSL connection through a public network.</li><li id="dds_02_0047__li14458419123913"><strong id="dds_02_0047__b68174378613">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0047__uicontrol2818173715614"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0047__uicontrol98182374616"><b>Connections</b></span> page.</li><li id="dds_02_0047__li13459141933920"><strong id="dds_02_0047__b15374553412">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0047__uicontrol65312455349"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0047__uicontrol15514518344"><b>Basic Information</b></span> area on the <strong id="dds_02_0047__b1655164543418">Connections</strong> page.</li><li id="dds_02_0047__li15863397408"><strong id="dds_02_0047__b1581444154016">DB_HOST</strong> and <strong id="dds_02_0047__b1387705014403">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0047__li16460161973911"><strong id="dds_02_0047__b1281810133510">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0047__b1082080173519">rwuser</strong>.</li><li id="dds_02_0047__li1393212219304"><strong id="dds_02_0047__b17933142214306"><em id="dds_02_0047__i1693342223019">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0047__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="dds_02_0047__li54601619123914"><strong id="dds_02_0047__b18941015183515">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul> <div class="note" id="dds_02_0047__note12458119143913"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0047__ul1945891912390"><li id="dds_02_0047__li0458151916393">A replica set instance uses the management IP address to generate SSL certificate. <strong id="dds_02_0047__b6606191518343">--sslAllowInvalidHostnames</strong> is needed for the SSL connection through a public network.</li><li id="dds_02_0047__li14458419123913"><strong id="dds_02_0047__b68174378613">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0047__uicontrol2818173715614"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0047__uicontrol98182374616"><b>Connections</b></span> page.</li><li id="dds_02_0047__li13459141933920"><strong id="dds_02_0047__b15374553412">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0047__uicontrol65312455349"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0047__uicontrol15514518344"><b>Basic Information</b></span> area on the <strong id="dds_02_0047__b1655164543418">Connections</strong> page.</li><li id="dds_02_0047__li15863397408"><strong id="dds_02_0047__b1581444154016">DB_HOST</strong> and <strong id="dds_02_0047__b1387705014403">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0047__li16460161973911"><strong id="dds_02_0047__b1281810133510">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0047__b1082080173519">rwuser</strong>.</li><li id="dds_02_0047__li1393212219304"><strong id="dds_02_0047__b17933142214306"><em id="dds_02_0047__i1693342223019">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0047__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="dds_02_0047__li54601619123914"><strong id="dds_02_0047__b18941015183515">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul>
</div></div> </div></div>
<ul id="dds_02_0047__ul546017197393"><li id="dds_02_0047__li154601519163917">Connect to the instance using standard parameters. The following is an example command:<p id="dds_02_0047__p1592345744215"><a name="dds_02_0047__li154601519163917"></a><a name="li154601519163917"></a><strong id="dds_02_0047__b892345734218">mongo </strong><strong id="dds_02_0047__b9923175714216">--host replica/192.168.1.6,192.168.1.80 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="dds_02_0047__b892345734217">--sslAllowInvalidHostnames</strong></p> <ul id="dds_02_0047__ul546017197393"><li id="dds_02_0047__li154601519163917">Connect to the instance using standard parameters. The following is an example command:<pre class="codeblock" id="dds_02_0047__codeblock156031230171515"><strong id="dds_02_0047__b861283081515">mongo </strong><strong id="dds_02_0047__b3612153041511">--host replica/192.168.1.6,192.168.1.80 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="dds_02_0047__b116122030141512">--sslAllowInvalidHostnames</strong></pre>
</li><li id="dds_02_0047__li1946020192399">Connect to the DB instance Using standard URI format. The following is an example command:<p id="dds_02_0047__p16461171914399"><a name="dds_02_0047__li1946020192399"></a><a name="li1946020192399"></a><strong id="dds_02_0047__b4461171916397"><strong id="dds_02_0047__b1946131983919">mongo</strong></strong> <strong id="dds_02_0047__b16461819103918">"mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0047__b546116194394"><strong id="dds_02_0047__b24611919133911">192.168.1.80</strong><strong id="dds_02_0047__b18461201923919">:</strong><strong id="dds_02_0047__b1846181910396">8635</strong></strong><strong id="dds_02_0047__b946151917392">/test?authSource=admin&amp;replicaSet=replica<strong id="dds_02_0047__b446111194399">"</strong></strong> <strong id="dds_02_0047__b946161933917">--ssl --sslCAFile</strong> <strong id="dds_02_0047__b946114193392">/tmp/ca.crt</strong> <strong id="dds_02_0047__b046111912393">--sslAllowInvalidHostnames</strong></p> </li><li id="dds_02_0047__li1946020192399">Connect to the DB instance Using standard URI format. The following is an example command:<pre class="codeblock" id="dds_02_0047__codeblock74332036111510"><strong id="dds_02_0047__b13441143613158"><strong id="dds_02_0047__b4441113681520">mongo</strong></strong> <strong id="dds_02_0047__b124411736141510">"mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0047__b34411236161514"><strong id="dds_02_0047__b244118369154">192.168.1.80</strong><strong id="dds_02_0047__b134412361155">:</strong><strong id="dds_02_0047__b1544183631512">8635</strong></strong><strong id="dds_02_0047__b12441173611155">/test?authSource=admin&amp;replicaSet=replica<strong id="dds_02_0047__b1344116360151">"</strong></strong> <strong id="dds_02_0047__b1344116369150">--ssl --sslCAFile</strong> <strong id="dds_02_0047__b54417363156">/tmp/ca.crt</strong> <strong id="dds_02_0047__b1844116364157">--sslAllowInvalidHostnames</strong></pre>
</li></ul> </li></ul>
</p></li><li id="dds_02_0047__li18461819163917"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><ul id="dds_02_0047__ul10461151914395"><li id="dds_02_0047__li1146141993919">Result from connecting to the primary node in a replica set or connecting to the whole replica set:<pre class="screen" id="dds_02_0047__screen3461151963916">replica:PRIMARY&gt;</pre> </p></li><li id="dds_02_0047__li18461819163917"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><ul id="dds_02_0047__ul10461151914395"><li id="dds_02_0047__li1146141993919">Result from connecting to the primary node in a replica set or connecting to the whole replica set:<pre class="screen" id="dds_02_0047__screen3461151963916">replica:PRIMARY&gt;</pre>
</li><li id="dds_02_0047__li24613190397">Result from connecting the secondary node in a replica set:<pre class="screen" id="dds_02_0047__screen15461181917395">replica:SECONDARY&gt;</pre> </li><li id="dds_02_0047__li24613190397">Result from connecting the secondary node in a replica set:<pre class="screen" id="dds_02_0047__screen15461181917395">replica:SECONDARY&gt;</pre>
@ -62,16 +62,16 @@
</div> </div>
<div class="section" id="dds_02_0047__section15798154693317"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="dds_02_0047__en-us_topic_0085335422_note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="dds_02_0047__p4254182110517">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p> <div class="section" id="dds_02_0047__section15798154693317"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="dds_02_0047__en-us_topic_0085335422_note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="dds_02_0047__p4254182110517">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p>
</div></div> </div></div>
<ol id="dds_02_0047__en-us_topic_0085335422_o12386b3d9147482881ddfdfd9a3f787c"><li id="dds_02_0047__en-us_topic_0085335422_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to a <span class="keyword" id="dds_02_0047__keyword929914461813">DDS DB instance</span>.</span><p><ul id="dds_02_0047__ul7658651537"><li id="dds_02_0047__li465816511239">Method 1: Using standard parameters<p id="dds_02_0047__en-us_topic_0085335422_p6129489612597"><a name="dds_02_0047__li465816511239"></a><a name="li465816511239"></a><strong id="dds_02_0047__en-us_topic_0085335422_b24308785171016">mongo --host</strong> &lt;<em id="dds_02_0047__en-us_topic_0085335422_i3943596517931">DB_HOST</em>&gt; <strong id="dds_02_0047__en-us_topic_0085335422_b51875524143035">--port</strong> &lt;<em id="dds_02_0047__en-us_topic_0085335422_i6462580917936">DB_PORT</em>&gt; <strong id="dds_02_0047__en-us_topic_0085335422_b26007606165312">-u</strong> &lt;<em id="dds_02_0047__en-us_topic_0085335422_i562728517940">DB_USER</em>&gt; <strong id="dds_02_0047__b185111416356">-p</strong> <strong id="dds_02_0047__en-us_topic_0085335422_b4258861217920">--authenticationDatabase</strong> <strong id="dds_02_0047__b9828348183514">admin</strong></p> <ol id="dds_02_0047__en-us_topic_0085335422_o12386b3d9147482881ddfdfd9a3f787c"><li id="dds_02_0047__en-us_topic_0085335422_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to a <span class="keyword" id="dds_02_0047__keyword929914461813">DDS DB instance</span>.</span><p><ul id="dds_02_0047__ul7658651537"><li id="dds_02_0047__li465816511239">Method 1: Using standard parameters<pre class="codeblock" id="dds_02_0047__codeblock57661349181513"><strong id="dds_02_0047__b14767649161513">mongo --host</strong> &lt;<em id="dds_02_0047__i076704921514">DB_HOST</em>&gt; <strong id="dds_02_0047__b1976717497151">--port</strong> &lt;<em id="dds_02_0047__i1076704917158">DB_PORT</em>&gt; <strong id="dds_02_0047__b876794918157">-u</strong> &lt;<em id="dds_02_0047__i576718492151">DB_USER</em>&gt; <strong id="dds_02_0047__b3767154971511">-p</strong> <strong id="dds_02_0047__b3767449181515">--authenticationDatabase</strong> <strong id="dds_02_0047__b176774981514">admin</strong></pre>
<p id="dds_02_0047__p114291045245">Enter the database account password when prompted:</p> <p id="dds_02_0047__p114291045245">Enter the database account password when prompted:</p>
<pre class="screen" id="dds_02_0047__screen5430184517413">Enter password:</pre> <pre class="screen" id="dds_02_0047__screen5430184517413">Enter password:</pre>
</li><li id="dds_02_0047__li7480185615311">Method 2: Using standard URI format<p id="dds_02_0047__p116802419435"><a name="dds_02_0047__li7480185615311"></a><a name="li7480185615311"></a><strong id="dds_02_0047__b988273245520">mongo "</strong><strong id="dds_02_0047__b1588663275511">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0047__b1988923212558">@</strong><em id="dds_02_0047__i13891143212556">&lt;</em><em id="dds_02_0047__i158921032135516">DB_HOST</em><em id="dds_02_0047__i19893032105515">&gt;</em><strong id="dds_02_0047__b58934329552">:</strong><em id="dds_02_0047__i989363211558">&lt;</em><em id="dds_02_0047__i289516329557">DB_PORT</em><em id="dds_02_0047__i496295511591">&gt;</em><strong id="dds_02_0047__b5905123275512">/test?authSource=admin&amp;replicaSet=replica</strong><strong id="dds_02_0047__b69061932155511">"</strong></p> </li><li id="dds_02_0047__li7480185615311">Method 2: Using standard URI format<pre class="codeblock" id="dds_02_0047__codeblock123401254191514"><strong id="dds_02_0047__b1634010548150">mongo "</strong><strong id="dds_02_0047__b113405545151">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0047__b1834065421514">@</strong><em id="dds_02_0047__i1234065418151">&lt;</em><em id="dds_02_0047__i1834035414152">DB_HOST</em><em id="dds_02_0047__i63401254121512">&gt;</em><strong id="dds_02_0047__b83405543151">:</strong><em id="dds_02_0047__i11340454131516">&lt;</em><em id="dds_02_0047__i17340135414155">DB_PORT</em><em id="dds_02_0047__i153406547153">&gt;</em><strong id="dds_02_0047__b19340654111513">/test?authSource=admin&amp;replicaSet=replica</strong><strong id="dds_02_0047__b10340155401511">"</strong></pre>
<p id="dds_02_0047__p495061418449">To obtain the public connection address, click the instance name and choose <strong id="dds_02_0047__b4469417193214">Connections</strong>. The address is displayed in <strong id="dds_02_0047__b0469151733215">Public Network Connection Address</strong> field on the <strong id="dds_02_0047__b16470717203215">Public Connection</strong> tab.</p> <p id="dds_02_0047__p495061418449">To obtain the public connection address, click the instance name and choose <strong id="dds_02_0047__b4469417193214">Connections</strong>. The address is displayed in <strong id="dds_02_0047__b0469151733215">Public Network Connection Address</strong> field on the <strong id="dds_02_0047__b16470717203215">Public Connection</strong> tab.</p>
</li></ul> </li></ul>
<div class="note" id="dds_02_0047__note839816116261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0047__ul10720641042"><li id="dds_02_0047__li67211141348"><strong id="dds_02_0047__b56969441467">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0047__uicontrol15697544266"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0047__uicontrol06981344964"><b>Connections</b></span> page.</li><li id="dds_02_0047__li2729114846"><strong id="dds_02_0047__b317248173718">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0047__uicontrol6173158103718"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0047__uicontrol1017317810376"><b>Basic Information</b></span> area on the <strong id="dds_02_0047__b15175583371">Connections</strong> page.</li><li id="dds_02_0047__li13604648174618"><strong id="dds_02_0047__b45421758194614">DB_HOST</strong> and <strong id="dds_02_0047__b690910614475">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0047__li273215410414"><strong id="dds_02_0047__b16243121016374">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0047__b15244151013715">rwuser</strong>.</li><li id="dds_02_0047__li5303103512302"><strong id="dds_02_0047__b1730373512307"><em id="dds_02_0047__i03033350303">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0047__li38738398300">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul> <div class="note" id="dds_02_0047__note839816116261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0047__ul10720641042"><li id="dds_02_0047__li67211141348"><strong id="dds_02_0047__b56969441467">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0047__uicontrol15697544266"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0047__uicontrol06981344964"><b>Connections</b></span> page.</li><li id="dds_02_0047__li2729114846"><strong id="dds_02_0047__b317248173718">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0047__uicontrol6173158103718"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0047__uicontrol1017317810376"><b>Basic Information</b></span> area on the <strong id="dds_02_0047__b15175583371">Connections</strong> page.</li><li id="dds_02_0047__li13604648174618"><strong id="dds_02_0047__b45421758194614">DB_HOST</strong> and <strong id="dds_02_0047__b690910614475">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0047__li273215410414"><strong id="dds_02_0047__b16243121016374">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0047__b15244151013715">rwuser</strong>.</li><li id="dds_02_0047__li5303103512302"><strong id="dds_02_0047__b1730373512307"><em id="dds_02_0047__i03033350303">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0047__li38738398300">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul>
</div></div> </div></div>
<ul id="dds_02_0047__ul4976132291217"><li id="dds_02_0047__li4976122201215">Connect to the instance using standard parameters. The following is an example command:<p id="dds_02_0047__p99537413498"><a name="dds_02_0047__li4976122201215"></a><a name="li4976122201215"></a><strong id="dds_02_0047__b7312124394916">mongo </strong><strong id="dds_02_0047__b1731294314491">--host replica/192.168.1.6,192.168.1.80 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></p> <ul id="dds_02_0047__ul4976132291217"><li id="dds_02_0047__li4976122201215">Connect to the instance using standard parameters. The following is an example command:<pre class="codeblock" id="dds_02_0047__codeblock6203782163"><strong id="dds_02_0047__b42049881614">mongo </strong><strong id="dds_02_0047__b17204168141619">--host replica/192.168.1.6,192.168.1.80 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></pre>
</li><li id="dds_02_0047__li897632219129">Connect to the DB instance Using standard URI format. The following is an example command:<p id="dds_02_0047__p7633267124"><a name="dds_02_0047__li897632219129"></a><a name="li897632219129"></a><strong id="dds_02_0047__b1097632261220">mongo "</strong><strong id="dds_02_0047__b5976522111210">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0047__b13394447111112"><strong id="dds_02_0047__b839694711114">192.168.1.80</strong><strong id="dds_02_0047__b439714771111">:</strong><strong id="dds_02_0047__b1239874731114">8635</strong></strong><strong id="dds_02_0047__b5619423155910">/test?authSource=admin&amp;replicaSet=repli</strong><strong id="dds_02_0047__b6416112418594">ca</strong><strong id="dds_02_0047__b6419524115917">"</strong></p> </li><li id="dds_02_0047__li897632219129">Connect to the DB instance Using standard URI format. The following is an example command:<pre class="codeblock" id="dds_02_0047__codeblock894271111611"><strong id="dds_02_0047__b1594218110162">mongo "</strong><strong id="dds_02_0047__b179421614163">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0047__b12942121151619"><strong id="dds_02_0047__b8942315165">192.168.1.80</strong><strong id="dds_02_0047__b1694231191619">:</strong><strong id="dds_02_0047__b594211151611">8635</strong></strong><strong id="dds_02_0047__b209427191610">/test?authSource=admin&amp;replicaSet=repli</strong><strong id="dds_02_0047__b10942214161">ca</strong><strong id="dds_02_0047__b1894231191614">"</strong></pre>
</li></ul> </li></ul>
</p></li><li id="dds_02_0047__en-us_topic_0085335422_li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><ul id="dds_02_0047__en-us_topic_0085335422_ul18161746175515"><li id="dds_02_0047__li889442214500">Result from connecting to the primary node in a replica set or connecting to the whole replica set:<pre class="screen" id="dds_02_0047__screen7894152212502">replica:PRIMARY&gt;</pre> </p></li><li id="dds_02_0047__en-us_topic_0085335422_li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><ul id="dds_02_0047__en-us_topic_0085335422_ul18161746175515"><li id="dds_02_0047__li889442214500">Result from connecting to the primary node in a replica set or connecting to the whole replica set:<pre class="screen" id="dds_02_0047__screen7894152212502">replica:PRIMARY&gt;</pre>
</li><li id="dds_02_0047__en-us_topic_0085335422_li202171754198">Result from connecting the secondary node in a replica set:<pre class="screen" id="dds_02_0047__en-us_topic_0085335422_screen699818159103">replica:SECONDARY&gt;</pre> </li><li id="dds_02_0047__en-us_topic_0085335422_li202171754198">Result from connecting the secondary node in a replica set:<pre class="screen" id="dds_02_0047__en-us_topic_0085335422_screen699818159103">replica:SECONDARY&gt;</pre>

View File

@ -45,32 +45,32 @@
</div> </div>
</li></ul> </li></ul>
<ul id="dds_02_0048__ul16741818193920"><li id="dds_02_0048__li067514182397">In Windows, upload the root certificate using the remote connection tool.</li></ul> <ul id="dds_02_0048__ul16741818193920"><li id="dds_02_0048__li067514182397">In Windows, upload the root certificate using the remote connection tool.</li></ul>
</p></li><li id="dds_02_0048__li13341346136"><span>Connect to the DB instance in the directory where the MongoDB client is located.</span><p><ul id="dds_02_0048__ul16334634151317"><li id="dds_02_0048__li5334103421319">Method 1: Using standard parameters<p id="dds_02_0048__p2334734121318"><a name="dds_02_0048__li5334103421319"></a><a name="li5334103421319"></a><strong id="dds_02_0048__b33351034111319">mongo --host</strong> &lt;<em id="dds_02_0048__i93351934161311">DB_HOST</em>&gt; <strong id="dds_02_0048__b6335203491317">--port</strong> &lt;<em id="dds_02_0048__i19335193412136">DB_PORT</em>&gt; <strong id="dds_02_0048__b16335193431315">-u</strong> &lt;<em id="dds_02_0048__i2335153491311">DB_USER</em>&gt; <strong id="dds_02_0048__b33351034111311">-p</strong> <strong id="dds_02_0048__b1733519349132">--authenticationDatabase</strong><strong id="dds_02_0048__b5335183451315"> admin </strong><strong id="dds_02_0048__b333514342138">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0048__i933553419136">FILE_PATH</em>&gt; <strong id="dds_02_0048__b12335173416132">--sslAllowInvalidHostnames</strong></p> </p></li><li id="dds_02_0048__li13341346136"><span>Connect to the DB instance in the directory where the MongoDB client is located.</span><p><ul id="dds_02_0048__ul16334634151317"><li id="dds_02_0048__li5334103421319">Method 1: Using standard parameters<pre class="codeblock" id="dds_02_0048__codeblock2630630191810"><strong id="dds_02_0048__b14640930181819">mongo --host</strong> &lt;<em id="dds_02_0048__i15640230121810">DB_HOST</em>&gt; <strong id="dds_02_0048__b9640153011189">--port</strong> &lt;<em id="dds_02_0048__i16408307187">DB_PORT</em>&gt; <strong id="dds_02_0048__b464023071815">-u</strong> &lt;<em id="dds_02_0048__i1964093031816">DB_USER</em>&gt; <strong id="dds_02_0048__b1564073051814">-p</strong> <strong id="dds_02_0048__b12640193016185">--authenticationDatabase</strong><strong id="dds_02_0048__b19640143015187"> admin </strong><strong id="dds_02_0048__b12640203031816">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0048__i8640123014182">FILE_PATH</em>&gt; <strong id="dds_02_0048__b6640153081812">--sslAllowInvalidHostnames</strong></pre>
<p id="dds_02_0048__p1133683414132">Enter the database account password when prompted:</p> <p id="dds_02_0048__p1133683414132">Enter the database account password when prompted:</p>
<pre class="screen" id="dds_02_0048__screen133619348139">Enter password:</pre> <pre class="screen" id="dds_02_0048__screen133619348139">Enter password:</pre>
</li><li id="dds_02_0048__li16336143431315">Method 2: Using standard URI format<p id="dds_02_0048__p10336103413131"><a name="dds_02_0048__li16336143431315"></a><a name="li16336143431315"></a><strong id="dds_02_0048__b2336173411318">mongo</strong> <strong id="dds_02_0048__b833693471310">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0048__b1336133418138">@</strong><em id="dds_02_0048__i12336163431310">&lt;</em><em id="dds_02_0048__i16336133416138">DB_HOST</em><em id="dds_02_0048__i183363345135">&gt;</em><strong id="dds_02_0048__b1933673416135">:</strong><em id="dds_02_0048__i5336034151317">&lt;</em><em id="dds_02_0048__i133361634171319">DB_PORT</em><em id="dds_02_0048__i83367347138">&gt;</em><strong id="dds_02_0048__b8336934161319">/test?authSource=admin</strong> <strong id="dds_02_0048__b1133653481315">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0048__i18336113491310">FILE_PATH</em>&gt; <strong id="dds_02_0048__b1133613420135">--sslAllowInvalidHostnames</strong></p> </li><li id="dds_02_0048__li16336143431315">Method 2: Using standard URI format<pre class="codeblock" id="dds_02_0048__codeblock011893651813"><strong id="dds_02_0048__b411843612186">mongo</strong> <strong id="dds_02_0048__b8118113631810">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0048__b17118163631812">@</strong><em id="dds_02_0048__i1311843610189">&lt;</em><em id="dds_02_0048__i17118103613184">DB_HOST</em><em id="dds_02_0048__i6118133613181">&gt;</em><strong id="dds_02_0048__b19118536101812">:</strong><em id="dds_02_0048__i1811812363186">&lt;</em><em id="dds_02_0048__i141181336191816">DB_PORT</em><em id="dds_02_0048__i111181236141814">&gt;</em><strong id="dds_02_0048__b8119536181820">/test?authSource=admin</strong> <strong id="dds_02_0048__b81191936131815">--ssl --sslCAFile</strong> &lt;<em id="dds_02_0048__i511916360185">FILE_PATH</em>&gt; <strong id="dds_02_0048__b19119153616180">--sslAllowInvalidHostnames</strong></pre>
<p id="dds_02_0048__p3446121775715">To obtain the public connection address, click the instance name and choose <strong id="dds_02_0048__b1586019101900">Connections</strong>. The address is displayed in <strong id="dds_02_0048__b12860111010015">Public Network Connection Address</strong> field on the <strong id="dds_02_0048__b208601910509">Public Connection</strong> tab.</p> <p id="dds_02_0048__p3446121775715">To obtain the public connection address, click the instance name and choose <strong id="dds_02_0048__b1586019101900">Connections</strong>. The address is displayed in <strong id="dds_02_0048__b12860111010015">Public Network Connection Address</strong> field on the <strong id="dds_02_0048__b208601910509">Public Connection</strong> tab.</p>
</li></ul> </li></ul>
<div class="note" id="dds_02_0048__note1733615346138"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0048__ul83371634141320"><li id="dds_02_0048__li1433710341139">A single node instance uses the management IP address to generate SSL certificate. <strong id="dds_02_0048__b125556321008">--sslAllowInvalidHostnames</strong> is needed for the SSL connection through a public network.</li><li id="dds_02_0048__li19337193415138"><strong id="dds_02_0048__b4421173914012">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0048__uicontrol4337123416134"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0048__uicontrol8423639201"><b>Connections</b></span> page.</li><li id="dds_02_0048__li1933793411132"><strong id="dds_02_0048__b1593515018117">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0048__uicontrol1793614018113"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0048__uicontrol59371001914"><b>Basic Information</b></span> area on the <strong id="dds_02_0048__b11938180315">Connections</strong> page.</li><li id="dds_02_0048__li67784212329"><strong id="dds_02_0048__b677084410321">DB_HOST</strong> and <strong id="dds_02_0048__b616150153315">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0048__li13338153441318"><strong id="dds_02_0048__b10984104515">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0048__b9985104119">rwuser</strong>.</li><li id="dds_02_0048__li1580132493115"><strong id="dds_02_0048__b8802112413117"><em id="dds_02_0048__i1880222414310">&lt;password&gt; </em></strong>indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0048__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="dds_02_0048__li1733810349130"><strong id="dds_02_0048__b96311831611">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul> <div class="note" id="dds_02_0048__note1733615346138"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0048__ul83371634141320"><li id="dds_02_0048__li1433710341139">A single node instance uses the management IP address to generate SSL certificate. <strong id="dds_02_0048__b125556321008">--sslAllowInvalidHostnames</strong> is needed for the SSL connection through a public network.</li><li id="dds_02_0048__li19337193415138"><strong id="dds_02_0048__b4421173914012">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0048__uicontrol4337123416134"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0048__uicontrol8423639201"><b>Connections</b></span> page.</li><li id="dds_02_0048__li1933793411132"><strong id="dds_02_0048__b1593515018117">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0048__uicontrol1793614018113"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0048__uicontrol59371001914"><b>Basic Information</b></span> area on the <strong id="dds_02_0048__b11938180315">Connections</strong> page.</li><li id="dds_02_0048__li67784212329"><strong id="dds_02_0048__b677084410321">DB_HOST</strong> and <strong id="dds_02_0048__b616150153315">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="dds_02_0048__li13338153441318"><strong id="dds_02_0048__b10984104515">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0048__b9985104119">rwuser</strong>.</li><li id="dds_02_0048__li1580132493115"><strong id="dds_02_0048__b8802112413117"><em id="dds_02_0048__i1880222414310">&lt;password&gt; </em></strong>indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0048__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="dds_02_0048__li1733810349130"><strong id="dds_02_0048__b96311831611">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul>
</div></div> </div></div>
<ul id="dds_02_0048__ul233816341135"><li id="dds_02_0048__li6338113411137">Connect to the instance using standard parameters. The following is an example command:<p id="dds_02_0048__p153386346132"><a name="dds_02_0048__li6338113411137"></a><a name="li6338113411137"></a><strong id="dds_02_0048__b133384348133">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="dds_02_0048__b103381234111314">--sslAllowInvalidHostnames</strong></p> <ul id="dds_02_0048__ul233816341135"><li id="dds_02_0048__li6338113411137">Connect to the instance using standard parameters. The following is an example command:<pre class="codeblock" id="dds_02_0048__codeblock3221143111816"><strong id="dds_02_0048__b6222114312189">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="dds_02_0048__b222284319187">--sslAllowInvalidHostnames</strong></pre>
</li><li id="dds_02_0048__li1433815346138">Connect to the DB instance using standard URI format. The following is an example command:<p id="dds_02_0048__p23391634101316"><a name="dds_02_0048__li1433815346138"></a><a name="li1433815346138"></a><strong id="dds_02_0048__b183396347139">mongo</strong> <strong id="dds_02_0048__b1333919341135">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0048__b1339734181317">192.168.1.80</strong><strong id="dds_02_0048__b16339183461310">:</strong><strong id="dds_02_0048__b333943431312">8635</strong><strong id="dds_02_0048__b6339103413136">/test?authSource=admin</strong><strong id="dds_02_0048__b1333903415130"> -</strong><strong id="dds_02_0048__b63391534181317">-ssl --sslCAFile</strong> <strong id="dds_02_0048__b9339113451319">/tmp/ca.crt</strong> <strong id="dds_02_0048__b033973410135">--sslAllowInvalidHostnames</strong></p> </li><li id="dds_02_0048__li1433815346138">Connect to the DB instance using standard URI format. The following is an example command:<pre class="codeblock" id="dds_02_0048__codeblock1883414484184"><strong id="dds_02_0048__b12834174821811">mongo</strong> <strong id="dds_02_0048__b1983418487183">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0048__b148341348121817">192.168.1.80</strong><strong id="dds_02_0048__b78349482184">:</strong><strong id="dds_02_0048__b9834184811183">8635</strong><strong id="dds_02_0048__b20834104891819">/test?authSource=admin</strong><strong id="dds_02_0048__b283416484182"> -</strong><strong id="dds_02_0048__b15834164819183">-ssl --sslCAFile</strong> <strong id="dds_02_0048__b178341948141812">/tmp/ca.crt</strong> <strong id="dds_02_0048__b168341548111819">--sslAllowInvalidHostnames</strong></pre>
</li></ul> </li></ul>
</p></li><li id="dds_02_0048__li833993451320"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="dds_02_0048__screen143397345133">replica:PRIMARY&gt;</pre> </p></li><li id="dds_02_0048__li833993451320"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="dds_02_0048__screen143397345133">replica:PRIMARY&gt;</pre>
</p></li></ol> </p></li></ol>
</div> </div>
<div class="section" id="dds_02_0048__section278014466539"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="dds_02_0048__en-us_topic_0085335422_note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="dds_02_0048__p20154316527">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p> <div class="section" id="dds_02_0048__section278014466539"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="dds_02_0048__en-us_topic_0085335422_note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="dds_02_0048__p20154316527">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p>
</div></div> </div></div>
<ol id="dds_02_0048__en-us_topic_0085335422_o12386b3d9147482881ddfdfd9a3f787c"><li id="dds_02_0048__en-us_topic_0085335422_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to a <span class="keyword" id="dds_02_0048__keyword2078120035">DDS DB instance</span>.</span><p><ul id="dds_02_0048__ul7567173152111"><li id="dds_02_0048__li856712311210">Method 1: Using standard parameters<p id="dds_02_0048__p1546173416213"><a name="dds_02_0048__li856712311210"></a><a name="li856712311210"></a><strong id="dds_02_0048__b1567143119217">mongo --host</strong> &lt;<em id="dds_02_0048__i456717314219">DB_HOST</em>&gt; <strong id="dds_02_0048__b256763113211">--port</strong> &lt;<em id="dds_02_0048__i3567631142114">DB_PORT</em>&gt; <strong id="dds_02_0048__b16567731192119">-u</strong> &lt;<em id="dds_02_0048__i65672318217">DB_USER</em>&gt; <strong id="dds_02_0048__b637789133717">-p</strong> <strong id="dds_02_0048__b1156711315219">--authenticationDatabase</strong> <strong id="dds_02_0048__b2033119156376">admin</strong></p> <ol id="dds_02_0048__en-us_topic_0085335422_o12386b3d9147482881ddfdfd9a3f787c"><li id="dds_02_0048__en-us_topic_0085335422_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to a <span class="keyword" id="dds_02_0048__keyword2078120035">DDS DB instance</span>.</span><p><ul id="dds_02_0048__ul7567173152111"><li id="dds_02_0048__li856712311210">Method 1: Using standard parameters<pre class="codeblock" id="dds_02_0048__codeblock9660185614188"><strong id="dds_02_0048__b16611056101817">mongo --host</strong> &lt;<em id="dds_02_0048__i0661125671817">DB_HOST</em>&gt; <strong id="dds_02_0048__b1566155671811">--port</strong> &lt;<em id="dds_02_0048__i466118562184">DB_PORT</em>&gt; <strong id="dds_02_0048__b1766145651814">-u</strong> &lt;<em id="dds_02_0048__i196619567188">DB_USER</em>&gt; <strong id="dds_02_0048__b19661356201816">-p</strong> <strong id="dds_02_0048__b14661105619183">--authenticationDatabase</strong> <strong id="dds_02_0048__b16661175610185">admin</strong></pre>
<p id="dds_02_0048__p3759945202019">Enter the database account password when prompted:</p> <p id="dds_02_0048__p3759945202019">Enter the database account password when prompted:</p>
<pre class="screen" id="dds_02_0048__screen6759145122016">Enter password:</pre> <pre class="screen" id="dds_02_0048__screen6759145122016">Enter password:</pre>
</li><li id="dds_02_0048__li956719313217">Method 2: Using standard URI format<p id="dds_02_0048__p18264365212"><a name="dds_02_0048__li956719313217"></a><a name="li956719313217"></a><strong id="dds_02_0048__b1851992173718">mongo</strong> <strong id="dds_02_0048__b165200219378">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0048__b1692415451252">@</strong><em id="dds_02_0048__i15671331162116">&lt;</em><em id="dds_02_0048__i956773112112">DB_HOST</em><em id="dds_02_0048__i20567173113218">&gt;</em><strong id="dds_02_0048__b656763118210">:</strong><em id="dds_02_0048__i9567143122110">&lt;</em><em id="dds_02_0048__i1156723132117">DB_PORT</em><em id="dds_02_0048__i75674315214">&gt;</em><strong id="dds_02_0048__b4981817583">/test?authSource=admin</strong></p> </li><li id="dds_02_0048__li956719313217">Method 2: Using standard URI format<pre class="codeblock" id="dds_02_0048__codeblock1774710241918"><strong id="dds_02_0048__b47484231912">mongo</strong> <strong id="dds_02_0048__b074862161912">mongodb://rwuser:</strong>&lt;password&gt;<strong id="dds_02_0048__b127481822191">@</strong><em id="dds_02_0048__i4748927195">&lt;</em><em id="dds_02_0048__i19748132161911">DB_HOST</em><em id="dds_02_0048__i87481026194">&gt;</em><strong id="dds_02_0048__b57483217192">:</strong><em id="dds_02_0048__i19748820194">&lt;</em><em id="dds_02_0048__i1274812213196">DB_PORT</em><em id="dds_02_0048__i187484217194">&gt;</em><strong id="dds_02_0048__b1874832141916">/test?authSource=admin</strong></pre>
<p id="dds_02_0048__p318624972916">To obtain the public connection address, click the instance name and choose <strong id="dds_02_0048__b534517285310">Connections</strong>. The address is displayed in <strong id="dds_02_0048__b1334532833111">Public Network Connection Address</strong> field on the <strong id="dds_02_0048__b11347142823118">Public Connection</strong> tab.</p> <p id="dds_02_0048__p318624972916">To obtain the public connection address, click the instance name and choose <strong id="dds_02_0048__b534517285310">Connections</strong>. The address is displayed in <strong id="dds_02_0048__b1334532833111">Public Network Connection Address</strong> field on the <strong id="dds_02_0048__b11347142823118">Public Connection</strong> tab.</p>
</li></ul> </li></ul>
<div class="note" id="dds_02_0048__note839816116261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0048__ul83946567225"><li id="dds_02_0048__li146091023142317"><strong id="dds_02_0048__b142912221031">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0048__uicontrol5304228313"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0048__uicontrol19311220315"><b>Connections</b></span> page.</li><li id="dds_02_0048__li2508131610233"><strong id="dds_02_0048__b105259251235">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0048__uicontrol10525112517316"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0048__uicontrol2052720252314"><b>Basic Information</b></span> area on the <strong id="dds_02_0048__b1652712259319">Connections</strong> page.</li><li id="dds_02_0048__li4353171443514"><strong id="dds_02_0048__b135351419352">DB_HOST</strong> and <strong id="dds_02_0048__b17353121413357">DB_PORT</strong> can also be obtained from the <strong id="dds_02_0048__b3573345201017">Node Information</strong> area on the <strong id="dds_02_0048__b18783184915101">Basic Information</strong> page.</li><li id="dds_02_0048__li2512016202314"><strong id="dds_02_0048__b64721271838">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0048__b164731027734">rwuser</strong>.</li><li id="dds_02_0048__li1937943683118"><strong id="dds_02_0048__b1937912365315"><em id="dds_02_0048__i1837915364315">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0048__li5466638153119">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul> <div class="note" id="dds_02_0048__note839816116261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dds_02_0048__ul83946567225"><li id="dds_02_0048__li146091023142317"><strong id="dds_02_0048__b142912221031">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="dds_02_0048__uicontrol5304228313"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="dds_02_0048__uicontrol19311220315"><b>Connections</b></span> page.</li><li id="dds_02_0048__li2508131610233"><strong id="dds_02_0048__b105259251235">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="dds_02_0048__uicontrol10525112517316"><b>Database Port</b></span> in the <span class="uicontrol" id="dds_02_0048__uicontrol2052720252314"><b>Basic Information</b></span> area on the <strong id="dds_02_0048__b1652712259319">Connections</strong> page.</li><li id="dds_02_0048__li4353171443514"><strong id="dds_02_0048__b135351419352">DB_HOST</strong> and <strong id="dds_02_0048__b17353121413357">DB_PORT</strong> can also be obtained from the <strong id="dds_02_0048__b3573345201017">Node Information</strong> area on the <strong id="dds_02_0048__b18783184915101">Basic Information</strong> page.</li><li id="dds_02_0048__li2512016202314"><strong id="dds_02_0048__b64721271838">DB_USER</strong> indicates the database account name. The default value is <strong id="dds_02_0048__b164731027734">rwuser</strong>.</li><li id="dds_02_0048__li1937943683118"><strong id="dds_02_0048__b1937912365315"><em id="dds_02_0048__i1837915364315">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="dds_02_0048__li5466638153119">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul>
</div></div> </div></div>
<ul id="dds_02_0048__ul106082418273"><li id="dds_02_0048__li45912247273">Connect to the instance using standard parameters. The following is an example command:<p id="dds_02_0048__p1138102682712"><a name="dds_02_0048__li45912247273"></a><a name="li45912247273"></a><strong id="dds_02_0048__b85912412716">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></p> <ul id="dds_02_0048__ul106082418273"><li id="dds_02_0048__li45912247273">Connect to the instance using standard parameters. The following is an example command:<pre class="codeblock" id="dds_02_0048__codeblock3502201014193"><strong id="dds_02_0048__b45031310171912">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></pre>
</li><li id="dds_02_0048__li35911241274">Connect to the DB instance using standard URI format. The following is an example command:<p id="dds_02_0048__p43699277273"><a name="dds_02_0048__li35911241274"></a><a name="li35911241274"></a><strong id="dds_02_0048__b6128732153717">mongo</strong> <strong id="dds_02_0048__b012812320375">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0048__b145952420279">192.168.1.80:8635</strong><strong id="dds_02_0048__b95942410270">/test?authSource=admin</strong></p> </li><li id="dds_02_0048__li35911241274">Connect to the DB instance using standard URI format. The following is an example command:<pre class="codeblock" id="dds_02_0048__codeblock1088551514191"><strong id="dds_02_0048__b6885615161915">mongo</strong> <strong id="dds_02_0048__b58851915131918">mongodb://rwuser:&lt;password&gt;@</strong><strong id="dds_02_0048__b10885111551917">192.168.1.80:8635</strong><strong id="dds_02_0048__b288581571917">/test?authSource=admin</strong></pre>
</li></ul> </li></ul>
</p></li><li id="dds_02_0048__en-us_topic_0085335422_li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="dds_02_0048__en-us_topic_0085335422_screen141854665519">replica:PRIMARY&gt;</pre> </p></li><li id="dds_02_0048__en-us_topic_0085335422_li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="dds_02_0048__en-us_topic_0085335422_screen141854665519">replica:PRIMARY&gt;</pre>
</p></li></ol> </p></li></ol>

View File

@ -5,9 +5,13 @@
</div> </div>
<div> <div>
<ul class="ullinks"> <ul class="ullinks">
<li class="ulchildlink"><strong><a href="en-us_topic_0000002142634625.html">Log Reporting</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="en-us_topic_error_log.html">Error Log</a></strong><br> <li class="ulchildlink"><strong><a href="en-us_topic_error_log.html">Error Log</a></strong><br>
</li> </li>
<li class="ulchildlink"><strong><a href="en-us_topic_slow_query_log.html">Slow Query Log</a></strong><br> <li class="ulchildlink"><strong><a href="en-us_topic_slow_query_log.html">Slow Query Logs</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dds_03_0168.html">Audit Logs</a></strong><br>
</li> </li>
</ul> </ul>
</div> </div>

View File

@ -30,7 +30,7 @@
] ]
}</pre> }</pre>
</li><li id="dds_03_0061__li17927202333514">Example 3: Defining permissions for multiple services in a policy<p id="dds_03_0061__p3981183653514"><a name="dds_03_0061__li17927202333514"></a><a name="li17927202333514"></a>A custom policy can contain actions of multiple services that are all of the global or project-level type. The following is an example policy containing actions of multiple services:</p> </li><li id="dds_03_0061__li17927202333514">Example 3: Defining permissions for multiple services in a policy<p id="dds_03_0061__p3981183653514"><a name="dds_03_0061__li17927202333514"></a><a name="li17927202333514"></a>A custom policy can contain actions of multiple services that are all of the global or project-level type. The following is an example policy containing actions of multiple services:</p>
<pre class="codeblock" id="dds_03_0061__codeblock387682913612">{ <pre class="codeblock" id="dds_03_0061__codeblock04422519574">{
"Version": "1.1", "Version": "1.1",
"Statement": [ "Statement": [
{ {
@ -44,10 +44,9 @@
"Effect": "Allow" "Effect": "Allow"
} }
] ]
} }</pre>
Example 4: Setting resource policies </li><li id="dds_03_0061__li18271555205715">Example 4: Setting resource policies<p id="dds_03_0061__p198891215145812"><a name="dds_03_0061__li18271555205715"></a><a name="li18271555205715"></a>A custom policy can be used to set resource policies, indicating the operation permissions on the resources under the current action. Currently, the instance name can be configured, and the asterisk (*) can be used as a wildcard. The following is an example resource policy:</p>
A custom policy can be used to set resource policies, indicating the operation permissions on the resources under the current action. Currently, the instance name can be configured, and the asterisk (*) can be used as a wildcard. The following is an example resource policy: <pre class="codeblock" id="dds_03_0061__codeblock343323295811">{
{
"Version": "1.1", "Version": "1.1",
"Statement": [ "Statement": [
{ {

View File

@ -0,0 +1,19 @@
<a name="dds_03_0168"></a><a name="dds_03_0168"></a>
<h1 class="topictitle1">Audit Logs</h1>
<div id="body32001227"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dds_03_0291.html">Audit Log Policy Management</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dds_03_0267.html">Viewing Audit Logs on the LTS Console</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dds_03_0266.html">Viewing Audit Logs on the DDS Console</a></strong><br>
</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_03_0024.html">Log Management</a></div>
</div>
</div>

View File

@ -0,0 +1,16 @@
<a name="dds_03_0266"></a><a name="dds_03_0266"></a>
<h1 class="topictitle1">Viewing Audit Logs on the DDS Console</h1>
<div id="body32001227"><p id="dds_03_0266__en-us_topic_0000001641014028_p40414145116">You can download and delete audit logs on the DDS console.</p>
<div class="section" id="dds_03_0266__en-us_topic_0000001641014028_section27741918124912"><h4 class="sectiontitle">Downloading Logs to Querying Audit Logs</h4><ol id="dds_03_0266__en-us_topic_0000001641014028_ol9778114310159"><li id="dds_03_0266__en-us_topic_0000001641014028_li0509165982219"><span>Log in to the management console.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li19509195910221"><span>Click <span><img id="dds_03_0266__en-us_topic_0000001689493197_image874819251118" src="en-us_image_0000001641173852.png"></span> in the upper left corner and select a region and a project.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li95107594229"><span>Click <strong id="dds_03_0266__en-us_topic_0000001689493197_b74552376195932">Service List</strong>. Under <strong id="dds_03_0266__en-us_topic_0000001689493197_b54280783595932">Database</strong>, click <strong id="dds_03_0266__en-us_topic_0000001689493197_b74413043995932">Document Database Service</strong> to go to the DDS console.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li175230115317"><span>On the <strong id="dds_03_0266__en-us_topic_0000001641014028_b15432953347">Instances</strong> page, locate a target DB instance and click its name.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li029125953519"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_03_0266__en-us_topic_0000001641014028_uicontrol662057193417"><b>Audit Logs</b></span>.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li162961156101217"><span>On the <strong id="dds_03_0266__b121560104219">Audit Logs</strong> page, locate a target log file and click <strong id="dds_03_0266__b82158019428">Download</strong> in the <strong id="dds_03_0266__b521540174217">Operation</strong> column to download the log file to the local PC for query.</span><p><ul id="dds_03_0266__en-us_topic_0000001641014028_ul42971156131216"><li id="dds_03_0266__en-us_topic_0000001641014028_li6297205631211">The system automatically loads the downloading preparation tasks. The time required depends on the log file size and the network environment.</li><li id="dds_03_0266__en-us_topic_0000001641014028_li192971156111214">The download link is valid for 5 minutes. After the download link expires, a message is displayed indicating that the download link has expired. To download the log, click <strong id="dds_03_0266__en-us_topic_0000001641014028_b778225219358">OK</strong>.</li></ul>
</p></li></ol>
</div>
<div class="section" id="dds_03_0266__en-us_topic_0000001641014028_section64221512123815"><h4 class="sectiontitle">Deleting Logs</h4><ol id="dds_03_0266__en-us_topic_0000001641014028_ol174161214193812"><li id="dds_03_0266__en-us_topic_0000001641014028_li1941651463810"><span>Log in to the management console.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li14161714173819"><span>Click <span><img id="dds_03_0266__en-us_topic_0000001689493197_image874819251118_1" src="en-us_image_0000001641173852.png"></span> in the upper left corner and select a region and a project.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li1841771420384"><span>Click <strong id="dds_03_0266__en-us_topic_0000001689493197_b74552376195932_1">Service List</strong>. Under <strong id="dds_03_0266__en-us_topic_0000001689493197_b54280783595932_1">Database</strong>, click <strong id="dds_03_0266__en-us_topic_0000001689493197_b74413043995932_1">Document Database Service</strong> to go to the DDS console.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li174181914153813"><span>On the <strong id="dds_03_0266__en-us_topic_0000001641014028_b41861521113619">Instances</strong> page, locate a target DB instance and click its name.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li9418161417387"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_03_0266__en-us_topic_0000001641014028_uicontrol92089249362"><b>Audit Logs</b></span>.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li24181814133814"><span>On the <strong id="dds_03_0266__en-us_topic_0000001641014028_b5327112673614">Audit Logs</strong> page, locate a target log file and click <strong id="dds_03_0266__en-us_topic_0000001641014028_b832714267365">Delete</strong> in the <strong id="dds_03_0266__en-us_topic_0000001641014028_b832782613611">Operation</strong> column.</span></li><li id="dds_03_0266__en-us_topic_0000001641014028_li15436105516394"><span>Click <strong id="dds_03_0266__en-us_topic_0000001641014028_b629143543616">Yes</strong>.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_03_0168.html">Audit Logs</a></div>
</div>
</div>

View File

@ -0,0 +1,19 @@
<a name="dds_03_0267"></a><a name="dds_03_0267"></a>
<h1 class="topictitle1">Viewing Audit Logs on the LTS Console</h1>
<div id="body32001227"><p id="dds_03_0267__en-us_topic_0000001689493145_p7932114212176">You can analyze, search for, monitor, download, and view real-time logs on the LTS console.</p>
<div class="section" id="dds_03_0267__en-us_topic_0000001689493145_section09181435181310"><h4 class="sectiontitle">Querying Audit Logs Reported to LTS</h4><div class="note" id="dds_03_0267__en-us_topic_0000001689493145_note10881125555220"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dds_03_0267__en-us_topic_0000001689493145_p1188117557521">You have enabled log reporting to LTS. For details, see <a href="en-us_topic_0000002142634625.html">Log Reporting</a>.</p>
</div></div>
<ol id="dds_03_0267__en-us_topic_0000001689493145_ol598162165311"><li id="dds_03_0267__en-us_topic_0000001689493145_li69718213535"><span>Click <span><img id="dds_03_0267__en-us_topic_0000001689493145_image13979215319" src="en-us_image_0000002207066513.png"></span> in the upper left corner of the page and choose <strong id="dds_03_0267__en-us_topic_0000001689493145_b1063514244262">Management &amp; Governance</strong> &gt; <strong id="dds_03_0267__en-us_topic_0000001689493145_b1063552452611">Log Tank Service</strong>.</span></li><li id="dds_03_0267__en-us_topic_0000001689493145_li498824532"><span>In the <strong id="dds_03_0267__en-us_topic_0000001689493145_b142971555152619">Log Groups</strong> area, locate a target log group and click its name. </span></li></ol>
</div>
<div class="section" id="dds_03_0267__en-us_topic_0000001689493145_section9185938161417"><h4 class="sectiontitle">Downloading Audit Logs Reported to LTS</h4><div class="note" id="dds_03_0267__en-us_topic_0000001689493145_note13264133619158"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dds_03_0267__en-us_topic_0000001689493145_p8265123691519">If you have enabled log reporting to LTS for your DB instance in <a href="en-us_topic_0000002142634625.html">Log Reporting</a>, you can download logs on the LTS console.</p>
</div></div>
<ol id="dds_03_0267__en-us_topic_0000001689493145_ol145611916151619"><li id="dds_03_0267__en-us_topic_0000001689493145_li15560616111610"><span>Click <span><img id="dds_03_0267__en-us_topic_0000001689493145_image056012160165" src="en-us_image_0000002171625922.png"></span> in the upper left corner of the page and choose <strong id="dds_03_0267__en-us_topic_0000001689493145_b4871513113113">Management &amp; Governance</strong> &gt; <strong id="dds_03_0267__en-us_topic_0000001689493145_b11871201312311">Log Tank Service</strong>.</span></li><li id="dds_03_0267__en-us_topic_0000001689493145_li1756112161163"><span>In the <strong id="dds_03_0267__en-us_topic_0000001689493145_b61532353119">Log Groups</strong> area, locate a target log group and click its name.</span></li><li id="dds_03_0267__en-us_topic_0000001689493145_li1144044610164"><span>Click <span><img id="dds_03_0267__en-us_topic_0000001689493145_image816512471719" src="en-us_image_0000002207066521.png"></span>.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_03_0168.html">Audit Logs</a></div>
</div>
</div>

View File

@ -0,0 +1,56 @@
<a name="dds_03_0291"></a><a name="dds_03_0291"></a>
<h1 class="topictitle1">Audit Log Policy Management</h1>
<div id="body32001227"><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p40414145116">An audit log records operations performed on your databases and collections. The generated log files are stored in OBS. Auditing logs can enhance your database security and help you analyze the cause of failed operations.</p>
<div class="section" id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_section131383519444"><h4 class="sectiontitle">Precautions</h4><ul id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_ul1838894474719"><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li1155251621317">The audit policy of a DDS DB instance is disabled by default. You can enable it based on your service requirements. After the function is enabled, the system records audit information about read and write operations, which may deteriorate the performance by 15% to 20%.</li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li738994418470">DDS checks generated audit logs. If the retention period of logs exceeds the period you set, DDS will delete the logs. It is recommended that audit logs be stored for more than 180 days for tracing and problem analysis.</li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li143891744194713">After the audit policy is modified, DDS audits logs according to the new policy and the retention period of the original audit logs is subject to the modified retention period.</li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li9237535153010">By default, audit logs are generated every hour. If the size of an audit log exceeds 10 MB, a new audit log is generated.</li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li2056713212299">Your data must be encoded in UTF-8 format. For data in other format, the auditing result of the corresponding statement may be missing or contain garbled characters.</li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li1676944372120">Audit log files stored on OBS are invisible to you. They are only visible in the DDS backend management system.</li></ul>
</div>
<div class="section" id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_section1965621516519"><h4 class="sectiontitle">Configuring the Audit Policy</h4><ol id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_ol131917669"><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li207121728113711"><span>Log in to the management console.</span></li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li1178902014017"><span>Click <span><img id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_image18126205841515" src="en-us_image_0000002207066505.png"></span> in the upper left corner and select a region and a project.</span></li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li1578972044018"><span>Click <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b4444412191616">Service List</strong>. Under <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b1445191251611">Database</strong>, click <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b54450124169">Document Database Service</strong> to go to the DDS console.</span></li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li934172620"><span>On the <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b10145182717140">Instances</strong> page, click the instance name.</span></li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li153101711615"><span>In the navigation pane on the left, choose <span class="uicontrol" id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_uicontrol11786814969"><b>Audit Logs</b></span>.</span></li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li655720574519"><span>On the <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b165486421268">Audit Logs</strong> page, click <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b179735501769">Set Audit Policy</strong>.</span></li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li3225835179"><span>On the displayed page, click <span><img id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_image11227103161712" src="en-us_image_0000002171625914.png"></span>.</span></li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li144131720620"><span>Configure required parameters and click <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b52814561322">OK</strong> to enable the audit policy.</span><p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_table8615121821412" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_row1861618185145"><th align="left" class="cellrowborder" valign="top" width="23.31%" id="mcps1.3.3.2.8.2.1.2.3.1.1"><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p7616111819140">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="76.69%" id="mcps1.3.3.2.8.2.1.2.3.1.2"><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p146161718201415">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_row76167182148"><td class="cellrowborder" valign="top" width="23.31%" headers="mcps1.3.3.2.8.2.1.2.3.1.1 "><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p17616718161417">All</p>
</td>
<td class="cellrowborder" valign="top" width="76.69%" headers="mcps1.3.3.2.8.2.1.2.3.1.2 "><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p761651812148">Audit all collections in the instance.</p>
</td>
</tr>
<tr id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_row8616618181414"><td class="cellrowborder" valign="top" width="23.31%" headers="mcps1.3.3.2.8.2.1.2.3.1.1 "><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p6616618131412">Custom</p>
</td>
<td class="cellrowborder" valign="top" width="76.69%" headers="mcps1.3.3.2.8.2.1.2.3.1.2 "><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p17616181814141">Audit specified databases or collections in the instance.</p>
<p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p1910617311910">The database or collection name cannot contain spaces or the following special characters: /\' : "[]{}() The dollar sign ($) can be used only as an escape character.</p>
<p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p5565131434814">The database name can contain a maximum of 64 characters.</p>
<p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p15565014144814">If you enter a combined database and collection name, the total name length is 120 characters with the database name length of no more than 64 characters and the collection name cannot be blank, contain <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b766255963520">null</strong>, or use <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b136635593356">system.</strong> in prefix.</p>
</td>
</tr>
<tr id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_row16161418121418"><td class="cellrowborder" valign="top" width="23.31%" headers="mcps1.3.3.2.8.2.1.2.3.1.1 "><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p3616141820142">Statement Type</p>
</td>
<td class="cellrowborder" valign="top" width="76.69%" headers="mcps1.3.3.2.8.2.1.2.3.1.2 "><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p254122141513">You can query audit logs of specified statements in a collection, including auth, insert, update, delete, command and query statements.</p>
</td>
</tr>
<tr id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_row11616618201413"><td class="cellrowborder" valign="top" width="23.31%" headers="mcps1.3.3.2.8.2.1.2.3.1.1 "><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p176161618191412">Retention Days</p>
</td>
<td class="cellrowborder" valign="top" width="76.69%" headers="mcps1.3.3.2.8.2.1.2.3.1.2 "><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p2061613183149">The number of days to retain audit logs. Range: 7 to 732</p>
</td>
</tr>
</tbody>
</table>
</div>
<ul id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_ul108263144020"><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li714253111814">After the audit policy is enabled, you can modify it as required. After the modification, logs are generated according to the new policy and the retention period of the original logs is subject to the modified retention period.<p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p1331052541916"><a name="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li714253111814"></a><a name="en-us_topic_0000001894074453_en-us_topic_0000001609552726_li714253111814"></a>To modify the audit policy, click <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b17137716181016">Set Audit Policy</strong>. In the dialog box that is displayed, modify the audit policy.</p>
</li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li0821639408">Disable the audit policy.<div class="note" id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_note1013513471462"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p12137144717467">After the audit policy is disabled, no audit log is generated.</p>
</div></div>
<p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p134672021113917">To disable the audit policy, click <span><img id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_image187785034114" src="en-us_image_0000002171625918.png"></span>. </p>
<p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p116631131339">You can determine whether to delete all audit logs:</p>
<ul id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_ul716716371409"><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li060413403019">If you do not select <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b16316111012219">Delete audit logs</strong>, all audit logs within the retention period will be retained. You can manually delete them later.</li><li id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_li116715371705">If you select <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b1268646034175139">Delete audit logs</strong>, all audit logs within the retention period will be deleted.</li></ul>
<p id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_p25471222104114">Click <strong id="dds_03_0291__en-us_topic_0000001894074453_en-us_topic_0000001609552726_b84235270695330">OK</strong>.</p>
</li></ul>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_03_0168.html">Audit Logs</a></div>
</div>
</div>

View File

@ -182,7 +182,7 @@
<td class="cellrowborder" valign="top" width="75.38%" headers="mcps1.3.1.1.3.1.2 "><p id="dds_change_history__p1240111318290">Added the following content:</p> <td class="cellrowborder" valign="top" width="75.38%" headers="mcps1.3.1.1.3.1.2 "><p id="dds_change_history__p1240111318290">Added the following content:</p>
<ul id="dds_change_history__ul1740191382917"><li id="dds_change_history__li74031319292"><a href="dds_01_0012.html">Replica Set</a></li><li id="dds_change_history__li140171372916"><a href="dds_02_0012.html">Creating a Replica Set Instance</a></li><li id="dds_change_history__li1940161352919"><a href="dds_03_0043.html">Restoring a Replica Set Instance from a Backup</a></li><li id="dds_change_history__li154141312912"><a href="dds_faq_0006.html">What Is the Time Delay for Primary/Secondary Synchronization in a Replica Set?</a></li><li id="dds_change_history__li441613192912"><a href="dds_03_0023.html">Tag Management</a></li></ul> <ul id="dds_change_history__ul1740191382917"><li id="dds_change_history__li74031319292"><a href="dds_01_0012.html">Replica Set</a></li><li id="dds_change_history__li140171372916"><a href="dds_02_0012.html">Creating a Replica Set Instance</a></li><li id="dds_change_history__li1940161352919"><a href="dds_03_0043.html">Restoring a Replica Set Instance from a Backup</a></li><li id="dds_change_history__li154141312912"><a href="dds_faq_0006.html">What Is the Time Delay for Primary/Secondary Synchronization in a Replica Set?</a></li><li id="dds_change_history__li441613192912"><a href="dds_03_0023.html">Tag Management</a></li></ul>
<p id="dds_change_history__p1141161382917">Modified the following content:</p> <p id="dds_change_history__p1141161382917">Modified the following content:</p>
<ul id="dds_change_history__ul741121372915"><li id="dds_change_history__li124171352914">Supported the creation of the replica set DB instance in sections <a href="dds_03_0075.html">Changing a DB Instance Name</a>, <a href="dds_03_0003.html">Restarting a DB Instance or a Node</a>, <a href="dds_03_0004.html">Deleting a DB Instance</a>, <a href="en-us_topic_backup_restore.html">Setting Automated Backup Policy</a>, <a href="dds_03_0007.html">Creating a Manual Backup</a>, <a href="dds_03_0008.html">Deleting a Manual Backup</a>, <a href="dds_03_0009.html">Deleting an Automated Backup</a>, <a href="en-us_topic_increase_storage.html">Scaling Up Storage Space</a>, <a href="dds_03_0019.html">Connection Management</a>, and <a href="dds_03_0026.html">DDS Metrics</a>.</li><li id="dds_change_history__li14411413202918">Supported disk encryption in sections <a href="en-us_topic_0044018333.html">Creating a Cluster Instance</a> and <a href="dds_02_0012.html">Creating a Replica Set Instance</a>.</li><li id="dds_change_history__li6428136294">Changed the length of the instance name to 4 to 64 characters in sections <a href="en-us_topic_0044018333.html">Creating a Cluster Instance</a>, <a href="dds_02_0012.html">Creating a Replica Set Instance</a>, and <a href="dds_03_0075.html">Changing a DB Instance Name</a>.</li><li id="dds_change_history__li54211312917">Supported the batch querying of error logs of all nodes, all dds mongos, all shards, and all configs of a cluster instance and supported the querying of error logs of all nodes of a replica set instance in section <a href="en-us_topic_error_log.html">Error Log</a>.</li><li id="dds_change_history__li104241372910">Supported the batch querying of slow query logs of all nodes of a replica set instance in section <a href="en-us_topic_slow_query_log.html">Slow Query Log</a>.</li></ul> <ul id="dds_change_history__ul741121372915"><li id="dds_change_history__li124171352914">Supported the creation of the replica set DB instance in sections <a href="dds_03_0075.html">Changing a DB Instance Name</a>, <a href="dds_03_0003.html">Restarting a DB Instance or a Node</a>, <a href="dds_03_0004.html">Deleting a DB Instance</a>, <a href="en-us_topic_backup_restore.html">Setting Automated Backup Policy</a>, <a href="dds_03_0007.html">Creating a Manual Backup</a>, <a href="dds_03_0008.html">Deleting a Manual Backup</a>, <a href="dds_03_0009.html">Deleting an Automated Backup</a>, <a href="en-us_topic_increase_storage.html">Scaling Up Storage Space</a>, <a href="dds_03_0019.html">Connection Management</a>, and <a href="dds_03_0026.html">DDS Metrics</a>.</li><li id="dds_change_history__li14411413202918">Supported disk encryption in sections <a href="en-us_topic_0044018333.html">Creating a Cluster Instance</a> and <a href="dds_02_0012.html">Creating a Replica Set Instance</a>.</li><li id="dds_change_history__li6428136294">Changed the length of the instance name to 4 to 64 characters in sections <a href="en-us_topic_0044018333.html">Creating a Cluster Instance</a>, <a href="dds_02_0012.html">Creating a Replica Set Instance</a>, and <a href="dds_03_0075.html">Changing a DB Instance Name</a>.</li><li id="dds_change_history__li54211312917">Supported the batch querying of error logs of all nodes, all dds mongos, all shards, and all configs of a cluster instance and supported the querying of error logs of all nodes of a replica set instance in section <a href="en-us_topic_error_log.html">Error Log</a>.</li><li id="dds_change_history__li104241372910">Supported the batch querying of slow query logs of all nodes of a replica set instance in section <a href="en-us_topic_slow_query_log.html">Slow Query Logs</a>.</li></ul>
</td> </td>
</tr> </tr>
<tr id="dds_change_history__row081373520151"><td class="cellrowborder" valign="top" width="24.62%" headers="mcps1.3.1.1.3.1.1 "><p id="dds_change_history__p881353551517">2018-07-03</p> <tr id="dds_change_history__row081373520151"><td class="cellrowborder" valign="top" width="24.62%" headers="mcps1.3.1.1.3.1.1 "><p id="dds_change_history__p881353551517">2018-07-03</p>
@ -215,7 +215,7 @@
<td class="cellrowborder" valign="top" width="75.38%" headers="mcps1.3.1.1.3.1.2 "><p id="dds_change_history__p15563327102818">Added the following content:</p> <td class="cellrowborder" valign="top" width="75.38%" headers="mcps1.3.1.1.3.1.2 "><p id="dds_change_history__p15563327102818">Added the following content:</p>
<ul id="dds_change_history__ul135631827132818"><li id="dds_change_history__li2563182712288"><a href="dds_03_0057.html">Creating a Database Account Using Commands</a></li><li id="dds_change_history__li35631527152813"><a href="dds_03_0018.html">Reverting and Deleting Failed Cluster Instance Nodes</a></li></ul> <ul id="dds_change_history__ul135631827132818"><li id="dds_change_history__li2563182712288"><a href="dds_03_0057.html">Creating a Database Account Using Commands</a></li><li id="dds_change_history__li35631527152813"><a href="dds_03_0018.html">Reverting and Deleting Failed Cluster Instance Nodes</a></li></ul>
<p id="dds_change_history__p25631027192810">Modified the following content:</p> <p id="dds_change_history__p25631027192810">Modified the following content:</p>
<ul id="dds_change_history__ul8563182782813"><li id="dds_change_history__li156316279282">Supported disk encryption, enabled the setting of DB instance name on the page for creating a DB instance, and changed the range of the config storage space in section <a href="en-us_topic_0044018333.html">Creating a Cluster Instance</a>.</li><li id="dds_change_history__li756442715284">Supported the deletion of node that fails to be added in section <a href="en-us_topic_increase_nodes.html">Adding Nodes to a Cluster</a>.</li><li id="dds_change_history__li456432718287">Supported the viewing of slow logs of all shards in section <a href="en-us_topic_slow_query_log.html">Slow Query Log</a>.</li><li id="dds_change_history__li15646276281">Modified commands supported and restricted by DDS in section <a href="dds_03_0033.html">Which Commands are Supported or Restricted by DDS?</a></li></ul> <ul id="dds_change_history__ul8563182782813"><li id="dds_change_history__li156316279282">Supported disk encryption, enabled the setting of DB instance name on the page for creating a DB instance, and changed the range of the config storage space in section <a href="en-us_topic_0044018333.html">Creating a Cluster Instance</a>.</li><li id="dds_change_history__li756442715284">Supported the deletion of node that fails to be added in section <a href="en-us_topic_increase_nodes.html">Adding Nodes to a Cluster</a>.</li><li id="dds_change_history__li456432718287">Supported the viewing of slow logs of all shards in section <a href="en-us_topic_slow_query_log.html">Slow Query Logs</a>.</li><li id="dds_change_history__li15646276281">Modified commands supported and restricted by DDS in section <a href="dds_03_0033.html">Which Commands are Supported or Restricted by DDS?</a></li></ul>
</td> </td>
</tr> </tr>
<tr id="dds_change_history__row181663531513"><td class="cellrowborder" valign="top" width="24.62%" headers="mcps1.3.1.1.3.1.1 "><p id="dds_change_history__p01604312816">2018-03-09</p> <tr id="dds_change_history__row181663531513"><td class="cellrowborder" valign="top" width="24.62%" headers="mcps1.3.1.1.3.1.1 "><p id="dds_change_history__p01604312816">2018-03-09</p>

View File

@ -1,7 +1,7 @@
<a name="dds_faq_0005"></a><a name="dds_faq_0005"></a> <a name="dds_faq_0005"></a><a name="dds_faq_0005"></a>
<h1 class="topictitle1">What Should I Do If My Query Is Slow?</h1> <h1 class="topictitle1">What Should I Do If My Query Is Slow?</h1>
<div id="body1482377670190"><ul id="dds_faq_0005__ul74427329554"><li id="dds_faq_0005__li480197159640">You can view the slow query logs to check whether any slowly executed SQL queries exist and view the performance characteristics of queries (if any) to locate the cause of slow queries.<p id="dds_faq_0005__p511485359640"><a name="dds_faq_0005__li480197159640"></a><a name="li480197159640"></a>For details on <span id="dds_faq_0005__text74362299715446">DDS</span> log queries, see section <a href="en-us_topic_slow_query_log.html">Slow Query Log</a>.</p> <div id="body1482377670190"><ul id="dds_faq_0005__ul74427329554"><li id="dds_faq_0005__li480197159640">You can view the slow query logs to check whether any slowly executed SQL queries exist and view the performance characteristics of queries (if any) to locate the cause of slow queries.<p id="dds_faq_0005__p511485359640"><a name="dds_faq_0005__li480197159640"></a><a name="li480197159640"></a>For details on <span id="dds_faq_0005__text74362299715446">DDS</span> log queries, see section <a href="en-us_topic_slow_query_log.html">Slow Query Logs</a>.</p>
</li></ul> </li></ul>
<ul id="dds_faq_0005__ul5011309557"><li id="dds_faq_0005__li220596259557">You can also view CPU usage metrics of DDS DB instances to facilitate problem locating. For details, see section <a href="dds_03_0076.html">Viewing DDS Metrics</a>.</li></ul> <ul id="dds_faq_0005__ul5011309557"><li id="dds_faq_0005__li220596259557">You can also view CPU usage metrics of DDS DB instances to facilitate problem locating. For details, see section <a href="dds_03_0076.html">Viewing DDS Metrics</a>.</li></ul>
</div> </div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

View File

@ -0,0 +1,34 @@
<a name="EN-US_TOPIC_0000002142634625"></a><a name="EN-US_TOPIC_0000002142634625"></a>
<h1 class="topictitle1">Log Reporting</h1>
<div id="body0000002142634625"><div class="section" id="EN-US_TOPIC_0000002142634625__section1843805853319"><h4 class="sectiontitle">Prerequisites</h4><p id="EN-US_TOPIC_0000002142634625__p340710012348">You have created a log group and a log stream on the Log Tank Service (LTS) console.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002142634625__en-us_topic_0000001385890673_section3875498517050"><h4 class="sectiontitle">Scenarios</h4><p id="EN-US_TOPIC_0000002142634625__en-us_topic_0000001385890673_p597043218513">If you enable log reporting to LTS, new audit logs generated for DDS DB instances will be uploaded to LTS for management. You can view details about audit logs of DDS DB instances, including searching for logs, visualizing logs, downloading logs, and viewing real-time logs.</p>
</div>
<ul id="EN-US_TOPIC_0000002142634625__ul8140850164810"><li id="EN-US_TOPIC_0000002142634625__li14140105016486">Enable log reporting to LTS for a single DB instance by referring to <a href="#EN-US_TOPIC_0000002142634625__section1383195911614">Enabling Log Reporting to LTS for a Single DB Instance</a>.</li><li id="EN-US_TOPIC_0000002142634625__li1961063134313">Edit log reporting to LTS for a single DB instance by referring to <a href="#EN-US_TOPIC_0000002142634625__section1284145910614">Editing Log Reporting to LTS for a Single DB Instance</a>.</li><li id="EN-US_TOPIC_0000002142634625__li31408506485">Disable log reporting to LTS for a single DB instance by referring to <a href="#EN-US_TOPIC_0000002142634625__section1486559069">Disabling Log Reporting to LTS for a Single DB Instance</a>.</li><li id="EN-US_TOPIC_0000002142634625__li1614010502484">Enable log reporting to LTS in batches by referring to <a href="#EN-US_TOPIC_0000002142634625__section198713591065">Enabling Log Reporting to LTS in Batches</a>.</li><li id="EN-US_TOPIC_0000002142634625__li514055064816">Disable log reporting to LTS in batches by referring to <a href="#EN-US_TOPIC_0000002142634625__section1087859766">Disabling Log Reporting to LTS in Batches</a>.</li></ul>
<div class="section" id="EN-US_TOPIC_0000002142634625__section1059419191031"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0000002142634625__ul12351161155619"><li id="EN-US_TOPIC_0000002142634625__li53511119561">Logs record all requests sent to your DB instance and are stored in LTS.</li><li id="EN-US_TOPIC_0000002142634625__li4351141112564">This request does not take effect immediately. There is a delay of about 10 minutes.</li><li id="EN-US_TOPIC_0000002142634625__li163511111105616">After this function is enabled, all audit policies are reported by default.</li><li id="EN-US_TOPIC_0000002142634625__li835131195616">If <strong id="EN-US_TOPIC_0000002142634625__b1045475816211">Audit Policy</strong> is enabled, LTS reuses the audit policy set for your DB instance and you will also be billed for reporting audit logs to LTS. (Only after you disable <strong id="EN-US_TOPIC_0000002142634625__b1330312184221">Audit Policy</strong>, the fee will be terminated.)</li><li id="EN-US_TOPIC_0000002142634625__li835191165610">If you enable audit log reporting to LTS for an instance with the <strong id="EN-US_TOPIC_0000002142634625__b841951626">Audit Policy</strong> toggle switch turned on, you can turn off this switch only when the instance status becomes available.</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000002142634625__section1383195911614"><a name="EN-US_TOPIC_0000002142634625__section1383195911614"></a><a name="section1383195911614"></a><h4 class="sectiontitle">Enabling Log Reporting to LTS for a Single DB Instance</h4><ol id="EN-US_TOPIC_0000002142634625__ol39192264314"><li id="EN-US_TOPIC_0000002142634625__li832182494318"><span>Log in to the console.</span></li><li id="EN-US_TOPIC_0000002142634625__li24285918436"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image139921052104811" src="en-us_image_0000002142796009.png"></span> in the upper left corner and select a region and a project.</span></li><li id="EN-US_TOPIC_0000002142634625__li559872854412"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image1949714644917" src="en-us_image_0000002107237174.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002142634625__b152971028145519">Databases</strong> &gt; <strong id="EN-US_TOPIC_0000002142634625__b142976282553">Document Database Service</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li0134933134420"><span>On the <strong id="EN-US_TOPIC_0000002142634625__b1217120592552">Instances</strong> page, locate a target DB instance and click its name.</span></li><li id="EN-US_TOPIC_0000002142634625__li16143164804812"><span>In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000002142634625__uicontrol6140150115819"><b>Audit Logs</b></span>.</span></li><li id="EN-US_TOPIC_0000002142634625__li31581031161116"><span>On the <strong id="EN-US_TOPIC_0000002142634625__b2665164511502">Audit Logs</strong> page, click <span><img id="EN-US_TOPIC_0000002142634625__image15187181281510" src="en-us_image_0000002142716389.png"></span> next to <strong id="EN-US_TOPIC_0000002142634625__b166504515020">Report Logs to LTS</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li7630233141417"><span>In the displayed dialog box, specify <strong id="EN-US_TOPIC_0000002142634625__b113034213714">Log Group</strong> and <strong id="EN-US_TOPIC_0000002142634625__b15337114912718">Log Stream</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li046973210174"><span>Click <strong id="EN-US_TOPIC_0000002142634625__b1553185072917">OK</strong>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000002142634625__section1284145910614"><a name="EN-US_TOPIC_0000002142634625__section1284145910614"></a><a name="section1284145910614"></a><h4 class="sectiontitle">Editing Log Reporting to LTS for a Single DB Instance</h4><ol id="EN-US_TOPIC_0000002142634625__ol439214314284"><li id="EN-US_TOPIC_0000002142634625__li039212315281"><span>Log in to the console.</span></li><li id="EN-US_TOPIC_0000002142634625__li63936311287"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image24195934919" src="en-us_image_0000002107237190.png"></span> in the upper left corner and select a region and a project.</span></li><li id="EN-US_TOPIC_0000002142634625__li1639319318288"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image57566619508" src="en-us_image_0000002142716401.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002142634625__b5393192510819">Databases</strong> &gt; <strong id="EN-US_TOPIC_0000002142634625__b83931025286">Document Database Service</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li173935313289"><span>On the <strong id="EN-US_TOPIC_0000002142634625__b169342338815">Instances</strong> page, locate a target DB instance and click its name.</span></li><li id="EN-US_TOPIC_0000002142634625__li53931631132819"><span>In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000002142634625__uicontrol888264411817"><b>Audit Logs</b></span>.</span></li><li id="EN-US_TOPIC_0000002142634625__li1739343142818"><span>On the <strong id="EN-US_TOPIC_0000002142634625__b689515489819">Audit Logs</strong> page, click <strong id="EN-US_TOPIC_0000002142634625__b122351226111016">Edit</strong> next to the <strong id="EN-US_TOPIC_0000002142634625__b121642917119">Report Logs to LTS</strong> toggle switch.</span><p><div class="note" id="EN-US_TOPIC_0000002142634625__note695122915319"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000002142634625__p595112993111">The editing function is available only when the <strong id="EN-US_TOPIC_0000002142634625__b795419237151">Report Logs to LTS</strong> toggle switch is turned on.</p>
</div></div>
</p></li><li id="EN-US_TOPIC_0000002142634625__li0378193410289"><span>In the displayed dialog box, specify <strong id="EN-US_TOPIC_0000002142634625__b19517931717">Log Group</strong> and <strong id="EN-US_TOPIC_0000002142634625__b05110981716">Log Stream</strong>.</span><p><div class="note" id="EN-US_TOPIC_0000002142634625__note138511740152918"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000002142634625__p28528409298">Select the target log group and log stream.</p>
</div></div>
</p></li><li id="EN-US_TOPIC_0000002142634625__li198135139303"><span>Click <strong id="EN-US_TOPIC_0000002142634625__b193311359207">OK</strong>.</span></li></ol>
<p id="EN-US_TOPIC_0000002142634625__p11836154416"></p>
</div>
<div class="section" id="EN-US_TOPIC_0000002142634625__section1486559069"><a name="EN-US_TOPIC_0000002142634625__section1486559069"></a><a name="section1486559069"></a><h4 class="sectiontitle">Disabling Log Reporting to LTS for a Single DB Instance</h4><ol id="EN-US_TOPIC_0000002142634625__ol1914061672512"><li id="EN-US_TOPIC_0000002142634625__li1514017168259"><span>Log in to the console.</span></li><li id="EN-US_TOPIC_0000002142634625__li1214151612518"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image18904192984917" src="en-us_image_0000002107077414.png"></span> in the upper left corner and select a region and a project.</span></li><li id="EN-US_TOPIC_0000002142634625__li41411716142513"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image3337184164912" src="en-us_image_0000002142796029.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002142634625__b1945812155374">Databases</strong> &gt; <strong id="EN-US_TOPIC_0000002142634625__b4459171533712">Document Database Service</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li11141201619255"><span>On the <strong id="EN-US_TOPIC_0000002142634625__b21321126203719">Instances</strong> page, locate a target DB instance and click its name.</span></li><li id="EN-US_TOPIC_0000002142634625__li18141101662512"><span>In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000002142634625__uicontrol1414315316377"><b>Audit Logs</b></span>.</span></li><li id="EN-US_TOPIC_0000002142634625__li18839354112018"><span>On the <strong id="EN-US_TOPIC_0000002142634625__b12431163516516">Audit Logs</strong> page, click <span><img id="EN-US_TOPIC_0000002142634625__image62951534142117" src="en-us_image_0000002107237198.png"></span> next to <strong id="EN-US_TOPIC_0000002142634625__b9431173513519">Report Logs to LTS</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li1354811141219"><span>In the displayed dialog box, click <strong id="EN-US_TOPIC_0000002142634625__b8654124974016">Yes</strong>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000002142634625__section198713591065"><a name="EN-US_TOPIC_0000002142634625__section198713591065"></a><a name="section198713591065"></a><h4 class="sectiontitle">Enabling Log Reporting to LTS in Batches</h4><ol id="EN-US_TOPIC_0000002142634625__ol45051530193515"><li id="EN-US_TOPIC_0000002142634625__li550693093516"><span>Log in to the console.</span></li><li id="EN-US_TOPIC_0000002142634625__li650618308353"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image249922512508" src="en-us_image_0000002142796045.png"></span> in the upper left corner and select a region and a project.</span></li><li id="EN-US_TOPIC_0000002142634625__li25061630103515"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image163011831135016" src="en-us_image_0000002107237210.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002142634625__b14707102254813">Databases</strong> &gt; <strong id="EN-US_TOPIC_0000002142634625__b3707822104818">Document Database Service</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li850693011352"><span>In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000002142634625__uicontrol1621143444810"><b>Log Reporting</b></span>.</span></li><li id="EN-US_TOPIC_0000002142634625__li12507113083512"><span>Select target DB instances and click <strong id="EN-US_TOPIC_0000002142634625__b689722120495">Enable Log Reporting</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li352763323512"><span>In the displayed dialog box, specify <strong id="EN-US_TOPIC_0000002142634625__b7591528195120">Log Group</strong> and <strong id="EN-US_TOPIC_0000002142634625__b25911428145110">Log Stream</strong>.</span><p><div class="note" id="EN-US_TOPIC_0000002142634625__note2059854563117"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000002142634625__ul0135141010327"><li id="EN-US_TOPIC_0000002142634625__li1913551073218">Select the target log group and log stream.</li></ul>
</div></div>
</p></li><li id="EN-US_TOPIC_0000002142634625__li11306132363814"><span>Click <strong id="EN-US_TOPIC_0000002142634625__b8815201616527">OK</strong>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000002142634625__section1087859766"><a name="EN-US_TOPIC_0000002142634625__section1087859766"></a><a name="section1087859766"></a><h4 class="sectiontitle">Disabling Log Reporting to LTS in Batches</h4><ol id="EN-US_TOPIC_0000002142634625__ol149595124013"><li id="EN-US_TOPIC_0000002142634625__li1196019114014"><span>Log in to the console.</span></li><li id="EN-US_TOPIC_0000002142634625__li1196014124011"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image157919493506" src="en-us_image_0000002107077430.png"></span> in the upper left corner and select a region and a project.</span></li><li id="EN-US_TOPIC_0000002142634625__li59601134013"><span>Click <span><img id="EN-US_TOPIC_0000002142634625__image19383135619503" src="en-us_image_0000002142796049.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002142634625__b8313730145413">Databases</strong> &gt; <strong id="EN-US_TOPIC_0000002142634625__b1931316303543">Document Database Service</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li179601319400"><span>In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000002142634625__uicontrol1691212379546"><b>Log Reporting</b></span>.</span></li><li id="EN-US_TOPIC_0000002142634625__li11960111164011"><span>Select target DB instances and click <strong id="EN-US_TOPIC_0000002142634625__b2019805465418">Disable Log Reporting</strong>.</span></li><li id="EN-US_TOPIC_0000002142634625__li159411449408"><span>In the displayed dialog box, click <strong id="EN-US_TOPIC_0000002142634625__b558972513810">OK</strong>.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_03_0024.html">Log Management</a></div>
</div>
</div>

View File

@ -21,34 +21,34 @@
</div></div> </div></div>
</div> </div>
</li><li id="en-us_topic_0044018334__li1219622314318">In Windows, upload the root certificate using the remote connection tool.</li></ul> </li><li id="en-us_topic_0044018334__li1219622314318">In Windows, upload the root certificate using the remote connection tool.</li></ul>
</p></li><li id="en-us_topic_0044018334__li75412144149"><span>Connect to the DB instance in the directory where the MongoDB client is located.</span><p><ul id="en-us_topic_0044018334__ul055614201419"><li id="en-us_topic_0044018334__li655191441415">Method 1: Using standard parameters<p id="en-us_topic_0044018334__p755181416143"><a name="en-us_topic_0044018334__li655191441415"></a><a name="li655191441415"></a><strong id="en-us_topic_0044018334__b955191421416">mongo --host</strong> &lt;<em id="en-us_topic_0044018334__i655171451417">DB_HOST</em>&gt; <strong id="en-us_topic_0044018334__b355201471418">--port</strong> &lt;<em id="en-us_topic_0044018334__i12551814171410">DB_PORT</em>&gt; <strong id="en-us_topic_0044018334__b6551714131412">-u</strong> &lt;<em id="en-us_topic_0044018334__i1255101410145">DB_USER</em>&gt; <strong id="en-us_topic_0044018334__b20555146148">-p</strong> <strong id="en-us_topic_0044018334__b85521411146">--authenticationDatabase</strong><strong id="en-us_topic_0044018334__b175541431416"> admin</strong> <strong id="en-us_topic_0044018334__b12554146146">--ssl --sslCAFile</strong> &lt;<em id="en-us_topic_0044018334__i155515143145">FILE_PATH</em>&gt; <strong id="en-us_topic_0044018334__b7551914121411">--sslAllowInvalidHostnames</strong></p> </p></li><li id="en-us_topic_0044018334__li75412144149"><span>Connect to the DB instance in the directory where the MongoDB client is located.</span><p><ul id="en-us_topic_0044018334__ul055614201419"><li id="en-us_topic_0044018334__li655191441415">Method 1: Using standard parameters<pre class="codeblock" id="en-us_topic_0044018334__codeblock1586818171015"><strong id="en-us_topic_0044018334__b11595161811017">mongo --host</strong> &lt;<em id="en-us_topic_0044018334__i1959551815102">DB_HOST</em>&gt; <strong id="en-us_topic_0044018334__b10595171819102">--port</strong> &lt;<em id="en-us_topic_0044018334__i6595101861017">DB_PORT</em>&gt; <strong id="en-us_topic_0044018334__b6595418161018">-u</strong> &lt;<em id="en-us_topic_0044018334__i20595161813101">DB_USER</em>&gt; <strong id="en-us_topic_0044018334__b959581881015">-p</strong> <strong id="en-us_topic_0044018334__b15595718111010">--authenticationDatabase</strong><strong id="en-us_topic_0044018334__b1359541813104"> admin</strong> <strong id="en-us_topic_0044018334__b1459519182101">--ssl --sslCAFile</strong> &lt;<em id="en-us_topic_0044018334__i19595818161010">FILE_PATH</em>&gt; <strong id="en-us_topic_0044018334__b959512189108">--sslAllowInvalidHostnames</strong></pre>
<p id="en-us_topic_0044018334__p9553141147">Enter the database account password when prompted:</p> <p id="en-us_topic_0044018334__p9553141147">Enter the database account password when prompted:</p>
<pre class="screen" id="en-us_topic_0044018334__screen1055614111419">Enter password:</pre> <pre class="screen" id="en-us_topic_0044018334__screen1055614111419">Enter password:</pre>
</li><li id="en-us_topic_0044018334__li1055161412145">Method 2: Using standard URI format.<p id="en-us_topic_0044018334__p356111491415"><a name="en-us_topic_0044018334__li1055161412145"></a><a name="li1055161412145"></a><strong id="en-us_topic_0044018334__b756121413144">mong</strong><strong id="en-us_topic_0044018334__b185610147147">o m</strong><strong id="en-us_topic_0044018334__b15561314181417">ongodb://rwuser:&lt;password&gt;@</strong><em id="en-us_topic_0044018334__i156161461415">&lt;</em><em id="en-us_topic_0044018334__i10568142148">DB_HOST</em><em id="en-us_topic_0044018334__i556171481419">&gt;</em><strong id="en-us_topic_0044018334__b95661421412">:</strong><em id="en-us_topic_0044018334__i16561148141">&lt;</em><em id="en-us_topic_0044018334__i13561314151416">DB_PORT</em><em id="en-us_topic_0044018334__i135616141143">&gt;</em><strong id="en-us_topic_0044018334__b856131461418">,</strong><em id="en-us_topic_0044018334__i556111411147">&lt;</em><em id="en-us_topic_0044018334__i55615142148">DB_HOST</em><em id="en-us_topic_0044018334__i1756161421419">&gt;</em><strong id="en-us_topic_0044018334__b9562147149">:</strong><em id="en-us_topic_0044018334__i95621441414">&lt;</em><em id="en-us_topic_0044018334__i75617141141">DB_PORT</em><em id="en-us_topic_0044018334__i35614141148">&gt;</em><strong id="en-us_topic_0044018334__b1757014181417">/test?authSource=admin</strong> <strong id="en-us_topic_0044018334__b115717144143">--ssl --sslCAFile</strong> <em id="en-us_topic_0044018334__i11571614161417">&lt;</em><em id="en-us_topic_0044018334__i65791441419">FILE_PATH</em><em id="en-us_topic_0044018334__i0577142141">&gt;</em> <strong id="en-us_topic_0044018334__b18571914191418">--sslAllowInvalidHostnames</strong></p> </li><li id="en-us_topic_0044018334__li1055161412145">Method 2: Using standard URI format.<pre class="codeblock" id="en-us_topic_0044018334__codeblock17584840141010"><strong id="en-us_topic_0044018334__b19585140101013">mong</strong><strong id="en-us_topic_0044018334__b15585104019109">o m</strong><strong id="en-us_topic_0044018334__b12585640171010">ongodb://rwuser:&lt;password&gt;@</strong><em id="en-us_topic_0044018334__i45853408101">&lt;</em><em id="en-us_topic_0044018334__i1858594018107">DB_HOST</em><em id="en-us_topic_0044018334__i12585194019108">&gt;</em><strong id="en-us_topic_0044018334__b145851740161018">:</strong><em id="en-us_topic_0044018334__i55851440191010">&lt;</em><em id="en-us_topic_0044018334__i6585194018105">DB_PORT</em><em id="en-us_topic_0044018334__i1058504010101">&gt;</em><strong id="en-us_topic_0044018334__b95858403104">,</strong><em id="en-us_topic_0044018334__i1558594017101">&lt;</em><em id="en-us_topic_0044018334__i75851940131013">DB_HOST</em><em id="en-us_topic_0044018334__i3585124051013">&gt;</em><strong id="en-us_topic_0044018334__b125851240111010">:</strong><em id="en-us_topic_0044018334__i135859401109">&lt;</em><em id="en-us_topic_0044018334__i458514013108">DB_PORT</em><em id="en-us_topic_0044018334__i14585134041012">&gt;</em><strong id="en-us_topic_0044018334__b1858584019104">/test?authSource=admin</strong> <strong id="en-us_topic_0044018334__b1058516407101">--ssl --sslCAFile</strong> <em id="en-us_topic_0044018334__i1658574014108">&lt;</em><em id="en-us_topic_0044018334__i5585740191013">FILE_PATH</em><em id="en-us_topic_0044018334__i9585164071010">&gt;</em> <strong id="en-us_topic_0044018334__b1058584071018">--sslAllowInvalidHostnames</strong></pre>
<p id="en-us_topic_0044018334__p15541153864316">The connection information can be obtained in the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol193163119165"><b>Address</b></span> column on the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol46471843163"><b>Instance Management</b></span> page.</p> <p id="en-us_topic_0044018334__p15541153864316">The connection information can be obtained in the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol193163119165"><b>Address</b></span> column on the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol46471843163"><b>Instance Management</b></span> page.</p>
<p id="en-us_topic_0044018334__p15852132744319">A connection address indicates that one of the dds mongos nodes will be randomly connected. If you use this method to connect to a DB instance, use the MongoDB client of version later than 3.4.</p> <p id="en-us_topic_0044018334__p15852132744319">A connection address indicates that one of the dds mongos nodes will be randomly connected. If you use this method to connect to a DB instance, use the MongoDB client of version later than 3.4.</p>
</li></ul> </li></ul>
<div class="note" id="en-us_topic_0044018334__note1957314131416"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0044018334__ul115731415143"><li id="en-us_topic_0044018334__li558131419149"><strong id="en-us_topic_0044018334__b226713556815">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol3268155285"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol32682055989"><b>Connections</b></span> page.</li><li id="en-us_topic_0044018334__li195811411416"><strong id="en-us_topic_0044018334__b078034553719">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="en-us_topic_0044018334__uicontrol1478194573714"><b>Database Port</b></span> in the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol1278344510379"><b>Basic Information</b></span> area on the <strong id="en-us_topic_0044018334__b13818121210417">Connections</strong> page.</li><li id="en-us_topic_0044018334__li845117911471"><strong id="en-us_topic_0044018334__b1645111915477">DB_HOST</strong> and<strong id="en-us_topic_0044018334__b11451591474"> DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="en-us_topic_0044018334__li15581214101417"><strong id="en-us_topic_0044018334__b18302125815169">DB_USER</strong> indicates the database account name. The default value is <strong id="en-us_topic_0044018334__b7303155851610">rwuser</strong>.</li><li id="en-us_topic_0044018334__li3589131519216"><strong id="en-us_topic_0044018334__b14590015122110"><em id="en-us_topic_0044018334__i1959014152219">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="en-us_topic_0044018334__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="en-us_topic_0044018334__li85813148148"><strong id="en-us_topic_0044018334__b84235270618026">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul> <div class="note" id="en-us_topic_0044018334__note1957314131416"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0044018334__ul115731415143"><li id="en-us_topic_0044018334__li558131419149"><strong id="en-us_topic_0044018334__b226713556815">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol3268155285"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol32682055989"><b>Connections</b></span> page.</li><li id="en-us_topic_0044018334__li195811411416"><strong id="en-us_topic_0044018334__b078034553719">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="en-us_topic_0044018334__uicontrol1478194573714"><b>Database Port</b></span> in the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol1278344510379"><b>Basic Information</b></span> area on the <strong id="en-us_topic_0044018334__b13818121210417">Connections</strong> page.</li><li id="en-us_topic_0044018334__li845117911471"><strong id="en-us_topic_0044018334__b1645111915477">DB_HOST</strong> and<strong id="en-us_topic_0044018334__b11451591474"> DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="en-us_topic_0044018334__li15581214101417"><strong id="en-us_topic_0044018334__b18302125815169">DB_USER</strong> indicates the database account name. The default value is <strong id="en-us_topic_0044018334__b7303155851610">rwuser</strong>.</li><li id="en-us_topic_0044018334__li3589131519216"><strong id="en-us_topic_0044018334__b14590015122110"><em id="en-us_topic_0044018334__i1959014152219">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="en-us_topic_0044018334__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="en-us_topic_0044018334__li85813148148"><strong id="en-us_topic_0044018334__b84235270618026">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul>
</div></div> </div></div>
<ul id="en-us_topic_0044018334__ul359171421411"><li id="en-us_topic_0044018334__li55921410140">Connect to the instance using standard parameters. The following is an example command:<p id="en-us_topic_0044018334__p6591714111417"><a name="en-us_topic_0044018334__li55921410140"></a><a name="li55921410140"></a><strong id="en-us_topic_0044018334__b659151461418">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="en-us_topic_0044018334__b195901411141">--sslAllowInvalidHostnames</strong></p> <ul id="en-us_topic_0044018334__ul359171421411"><li id="en-us_topic_0044018334__li55921410140">Connect to the instance using standard parameters. The following is an example command:<pre class="codeblock" id="en-us_topic_0044018334__codeblock106998171116"><strong id="en-us_topic_0044018334__b10699141171120">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="en-us_topic_0044018334__b169911114115">--sslAllowInvalidHostnames</strong></pre>
</li><li id="en-us_topic_0044018334__li1459914171415">Using standard URI format<p id="en-us_topic_0044018334__p16591614111411"><a name="en-us_topic_0044018334__li1459914171415"></a><a name="li1459914171415"></a><strong id="en-us_topic_0044018334__b1459141417147">mong</strong><strong id="en-us_topic_0044018334__b45981420146">o</strong> <strong id="en-us_topic_0044018334__b16598147142">mongodb://rwuser:&lt;password&gt;@</strong><strong id="en-us_topic_0044018334__b959171417148"><strong id="en-us_topic_0044018334__b35911144141">192.168.1.6</strong>:8635</strong><strong id="en-us_topic_0044018334__b3591514141418">/test?authSource=admin</strong> <strong id="en-us_topic_0044018334__b95919148149"><strong id="en-us_topic_0044018334__b3591314121410">--ssl --sslCAFile /tmp/ca.crt</strong> <strong id="en-us_topic_0044018334__b4598147141">--sslAllowInvalidHostnames</strong></strong></p> </li><li id="en-us_topic_0044018334__li1459914171415">Using standard URI format<pre class="codeblock" id="en-us_topic_0044018334__codeblock9661868119"><strong id="en-us_topic_0044018334__b06706191119">mong</strong><strong id="en-us_topic_0044018334__b6671616115">o</strong> <strong id="en-us_topic_0044018334__b5672681117">mongodb://rwuser:&lt;password&gt;@</strong><strong id="en-us_topic_0044018334__b146726111118"><strong id="en-us_topic_0044018334__b7671368115">192.168.1.6</strong>:8635</strong><strong id="en-us_topic_0044018334__b46746101117">/test?authSource=admin</strong> <strong id="en-us_topic_0044018334__b26715691112"><strong id="en-us_topic_0044018334__b26726111112">--ssl --sslCAFile /tmp/ca.crt</strong> <strong id="en-us_topic_0044018334__b176719661110">--sslAllowInvalidHostnames</strong></strong></pre>
</li></ul> </li></ul>
</p></li><li id="en-us_topic_0044018334__li1759181417146"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="en-us_topic_0044018334__screen45941411148">mongos&gt;</pre> </p></li><li id="en-us_topic_0044018334__li1759181417146"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="en-us_topic_0044018334__screen45941411148">mongos&gt;</pre>
</p></li></ol> </p></li></ol>
</div> </div>
<div class="section" id="en-us_topic_0044018334__sfc3bfb212a8440799f49320d91fc096c"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="en-us_topic_0044018334__note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="en-us_topic_0044018334__p8755899182235">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p> <div class="section" id="en-us_topic_0044018334__sfc3bfb212a8440799f49320d91fc096c"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="en-us_topic_0044018334__note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="en-us_topic_0044018334__p8755899182235">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p>
</div></div> </div></div>
<ol id="en-us_topic_0044018334__o12386b3d9147482881ddfdfd9a3f787c"><li id="en-us_topic_0044018334__lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to the <span class="keyword" id="en-us_topic_0044018334__keyword1648834318393">DB instance</span> in the directory where the MongoDB client is located.</span><p><ul id="en-us_topic_0044018334__ul112299368496"><li id="en-us_topic_0044018334__li16229133611496">Method 1: Using standard parameters<p id="en-us_topic_0044018334__p11432103844913"><a name="en-us_topic_0044018334__li16229133611496"></a><a name="li16229133611496"></a><strong id="en-us_topic_0044018334__b11229143604915">mongo --host</strong> &lt;<em id="en-us_topic_0044018334__i1229636144920">DB_HOST</em>&gt; <strong id="en-us_topic_0044018334__b3229036134914">--port</strong> &lt;<em id="en-us_topic_0044018334__i82299361491">DB_PORT</em>&gt; <strong id="en-us_topic_0044018334__b422923684918">-u</strong> &lt;<em id="en-us_topic_0044018334__i162293362492">DB_USER</em>&gt; <strong id="en-us_topic_0044018334__b66251283208">-p</strong> <strong id="en-us_topic_0044018334__b1522933611494">--authenticationDatabase</strong> <strong id="en-us_topic_0044018334__b71541216152018">admin</strong></p> <ol id="en-us_topic_0044018334__o12386b3d9147482881ddfdfd9a3f787c"><li id="en-us_topic_0044018334__lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to the <span class="keyword" id="en-us_topic_0044018334__keyword1648834318393">DB instance</span> in the directory where the MongoDB client is located.</span><p><ul id="en-us_topic_0044018334__ul112299368496"><li id="en-us_topic_0044018334__li16229133611496">Method 1: Using standard parameters<pre class="codeblock" id="en-us_topic_0044018334__codeblock74801333171111"><strong id="en-us_topic_0044018334__b1148963311119">mongo --host</strong> &lt;<em id="en-us_topic_0044018334__i134896331114">DB_HOST</em>&gt; <strong id="en-us_topic_0044018334__b1448933301111">--port</strong> &lt;<em id="en-us_topic_0044018334__i174891033191112">DB_PORT</em>&gt; <strong id="en-us_topic_0044018334__b8489133314116">-u</strong> &lt;<em id="en-us_topic_0044018334__i748963371111">DB_USER</em>&gt; <strong id="en-us_topic_0044018334__b1948953315115">-p</strong> <strong id="en-us_topic_0044018334__b154891336119">--authenticationDatabase</strong> <strong id="en-us_topic_0044018334__b1248914339113">admin</strong></pre>
<p id="en-us_topic_0044018334__p9369153711551">Enter the database account password when prompted:</p> <p id="en-us_topic_0044018334__p9369153711551">Enter the database account password when prompted:</p>
<pre class="screen" id="en-us_topic_0044018334__screen9370437195515">Enter password:</pre> <pre class="screen" id="en-us_topic_0044018334__screen9370437195515">Enter password:</pre>
</li><li id="en-us_topic_0044018334__li122297367491"><a name="en-us_topic_0044018334__li122297367491"></a><a name="li122297367491"></a>Method 2: Using standard URI format<p id="en-us_topic_0044018334__p1861164210158"><a name="en-us_topic_0044018334__li122297367491"></a><a name="li122297367491"></a><strong id="en-us_topic_0044018334__b090483712147">mongo</strong> <strong id="en-us_topic_0044018334__b3904123701413">mongodb://rwuser:</strong>&lt;password&gt;<strong id="en-us_topic_0044018334__b1390853716141">@</strong><em id="en-us_topic_0044018334__i5911183761412">&lt;</em><em id="en-us_topic_0044018334__i991283712146">DB_HOST</em><em id="en-us_topic_0044018334__i13913133717149">1&gt;</em><strong id="en-us_topic_0044018334__b6913173715142">:</strong><em id="en-us_topic_0044018334__i159187377147">&lt;</em><em id="en-us_topic_0044018334__i1591913701417">DB_PORT</em><em id="en-us_topic_0044018334__i177921824195911">1&gt;</em><strong id="en-us_topic_0044018334__b779302416597">,</strong><em id="en-us_topic_0044018334__i479292405917"><em id="en-us_topic_0044018334__i7792224185910">&lt;</em><em id="en-us_topic_0044018334__i19792152416599">DB_HOST</em><em id="en-us_topic_0044018334__i379210249592">2&gt;</em></em><strong id="en-us_topic_0044018334__b137474463169">:</strong><em id="en-us_topic_0044018334__i117451646121616"><em id="en-us_topic_0044018334__i77451246191619">&lt;</em><em id="en-us_topic_0044018334__i57456464163">DB_PORT</em><em id="en-us_topic_0044018334__i17745124617164">2&gt;</em></em><strong id="en-us_topic_0044018334__b4923173721411">/test?authSource=admin</strong></p> </li><li id="en-us_topic_0044018334__li122297367491"><a name="en-us_topic_0044018334__li122297367491"></a><a name="li122297367491"></a>Method 2: Using standard URI format<pre class="codeblock" id="en-us_topic_0044018334__codeblock1147233819111"><strong id="en-us_topic_0044018334__b174818387112">mongo</strong> <strong id="en-us_topic_0044018334__b248112384114">mongodb://rwuser:</strong>&lt;password&gt;<strong id="en-us_topic_0044018334__b154811238161118">@</strong><em id="en-us_topic_0044018334__i44815382116">&lt;</em><em id="en-us_topic_0044018334__i44811238131117">DB_HOST</em><em id="en-us_topic_0044018334__i1481193814112">1&gt;</em><strong id="en-us_topic_0044018334__b4481838131119">:</strong><em id="en-us_topic_0044018334__i19481193811111">&lt;</em><em id="en-us_topic_0044018334__i648116380116">DB_PORT</em><em id="en-us_topic_0044018334__i44811938111117">1&gt;</em><strong id="en-us_topic_0044018334__b2481538141112">,</strong><em id="en-us_topic_0044018334__i1348114387116"><em id="en-us_topic_0044018334__i15481638121120">&lt;</em><em id="en-us_topic_0044018334__i18481123817116">DB_HOST</em><em id="en-us_topic_0044018334__i13481838161111">2&gt;</em></em><strong id="en-us_topic_0044018334__b248111388116">:</strong><em id="en-us_topic_0044018334__i174814389115"><em id="en-us_topic_0044018334__i1948193814110">&lt;</em><em id="en-us_topic_0044018334__i18481183891116">DB_PORT</em><em id="en-us_topic_0044018334__i14481203817116">2&gt;</em></em><strong id="en-us_topic_0044018334__b15481193811115">/test?authSource=admin</strong></pre>
<p id="en-us_topic_0044018334__p1083104710171">The connection information can be obtained in the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol1375182011312"><b>Address</b></span> column on the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol937792093113"><b>Instance Management</b></span> page.</p> <p id="en-us_topic_0044018334__p1083104710171">The connection information can be obtained in the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol1375182011312"><b>Address</b></span> column on the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol937792093113"><b>Instance Management</b></span> page.</p>
<p id="en-us_topic_0044018334__p1118564314176">A connection address indicates that one of the dds mongos nodes will be randomly connected. If you use this method to connect to a DB instance, use the MongoDB client of version later than 3.4.</p> <p id="en-us_topic_0044018334__p1118564314176">A connection address indicates that one of the dds mongos nodes will be randomly connected. If you use this method to connect to a DB instance, use the MongoDB client of version later than 3.4.</p>
</li></ul> </li></ul>
<div class="note" id="en-us_topic_0044018334__note21381431122218"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0044018334__ul18138931152220"><li id="en-us_topic_0044018334__li8735051125619"><strong id="en-us_topic_0044018334__b1798202832120">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol1798492892118"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol298415283213"><b>Connections</b></span> page.</li><li id="en-us_topic_0044018334__li9743125175616"><strong id="en-us_topic_0044018334__b1785319082219">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="en-us_topic_0044018334__uicontrol88537032216"><b>Database Port</b></span> in the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol08545011223"><b>Basic Information</b></span> area on the <strong id="en-us_topic_0044018334__b1985513018225">Connections</strong> page.</li><li id="en-us_topic_0044018334__li1784422195514"><strong id="en-us_topic_0044018334__b1721511785612">DB_HOST</strong> and<strong id="en-us_topic_0044018334__b6356141555618"> DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="en-us_topic_0044018334__li10747135112566"><strong id="en-us_topic_0044018334__b208201423151716">DB_USER</strong> indicates the database account name. The default value is <strong id="en-us_topic_0044018334__b48209236172">rwuser</strong>.</li><li id="en-us_topic_0044018334__li39416434266"><strong id="en-us_topic_0044018334__b1951543172615"><em id="en-us_topic_0044018334__i1595174312610">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="en-us_topic_0044018334__li155958442267">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul> <div class="note" id="en-us_topic_0044018334__note21381431122218"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0044018334__ul18138931152220"><li id="en-us_topic_0044018334__li8735051125619"><strong id="en-us_topic_0044018334__b1798202832120">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol1798492892118"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol298415283213"><b>Connections</b></span> page.</li><li id="en-us_topic_0044018334__li9743125175616"><strong id="en-us_topic_0044018334__b1785319082219">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="en-us_topic_0044018334__uicontrol88537032216"><b>Database Port</b></span> in the <span class="uicontrol" id="en-us_topic_0044018334__uicontrol08545011223"><b>Basic Information</b></span> area on the <strong id="en-us_topic_0044018334__b1985513018225">Connections</strong> page.</li><li id="en-us_topic_0044018334__li1784422195514"><strong id="en-us_topic_0044018334__b1721511785612">DB_HOST</strong> and<strong id="en-us_topic_0044018334__b6356141555618"> DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="en-us_topic_0044018334__li10747135112566"><strong id="en-us_topic_0044018334__b208201423151716">DB_USER</strong> indicates the database account name. The default value is <strong id="en-us_topic_0044018334__b48209236172">rwuser</strong>.</li><li id="en-us_topic_0044018334__li39416434266"><strong id="en-us_topic_0044018334__b1951543172615"><em id="en-us_topic_0044018334__i1595174312610">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="en-us_topic_0044018334__li155958442267">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul>
</div></div> </div></div>
<ul id="en-us_topic_0044018334__ul3126111216496"><li id="en-us_topic_0044018334__li1212621264913">Connect to the instance using standard parameters. The following is an example command:<p id="en-us_topic_0044018334__p2941715144919"><a name="en-us_topic_0044018334__li1212621264913"></a><a name="li1212621264913"></a><strong id="en-us_topic_0044018334__b8126191215496">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></p> <ul id="en-us_topic_0044018334__ul3126111216496"><li id="en-us_topic_0044018334__li1212621264913">Connect to the instance using standard parameters. The following is an example command:<pre class="codeblock" id="en-us_topic_0044018334__codeblock5816145218117"><strong id="en-us_topic_0044018334__b1482455215119">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></pre>
</li><li id="en-us_topic_0044018334__li212631204914">Using standard URI format:<p id="en-us_topic_0044018334__p860711719493"><a name="en-us_topic_0044018334__li212631204914"></a><a name="li212631204914"></a><strong id="en-us_topic_0044018334__b61933300202">mongo</strong> <strong id="en-us_topic_0044018334__b111261612134918">mongodb://rwuser:&lt;password&gt;@</strong><strong id="en-us_topic_0044018334__b1812641210496"><strong id="en-us_topic_0044018334__b12628151620110">192.168.1.6</strong>:8635</strong><strong id="en-us_topic_0044018334__b71261212174919">/test?authSource=admin</strong></p> </li><li id="en-us_topic_0044018334__li212631204914">Using standard URI format:<pre class="codeblock" id="en-us_topic_0044018334__codeblock1389775810112"><strong id="en-us_topic_0044018334__b89059589112">mongo</strong> <strong id="en-us_topic_0044018334__b119051558161118">mongodb://rwuser:&lt;password&gt;@</strong><strong id="en-us_topic_0044018334__b990555851119"><strong id="en-us_topic_0044018334__b10905358151114">192.168.1.6</strong>:8635</strong><strong id="en-us_topic_0044018334__b11905155816111">/test?authSource=admin</strong></pre>
</li></ul> </li></ul>
</p></li><li id="en-us_topic_0044018334__li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="en-us_topic_0044018334__screen430918289155">mongos&gt;</pre> </p></li><li id="en-us_topic_0044018334__li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><pre class="screen" id="en-us_topic_0044018334__screen430918289155">mongos&gt;</pre>
</p></li></ol> </p></li></ol>

View File

@ -18,16 +18,16 @@
</div></div> </div></div>
</div> </div>
</li><li id="en-us_topic_0105284966__li97711751103717">In Windows, upload the root certificate using the remote connection tool.</li></ul> </li><li id="en-us_topic_0105284966__li97711751103717">In Windows, upload the root certificate using the remote connection tool.</li></ul>
</p></li><li id="en-us_topic_0105284966__li15455181914394"><span>Connect to a <span class="keyword" id="en-us_topic_0105284966__keyword6500122382510">DDS DB instance</span>.</span><p><ul id="en-us_topic_0105284966__ul104559191391"><li id="en-us_topic_0105284966__li20455419113913">Method 1: Using standard parameters<p id="en-us_topic_0105284966__p845514199396"><a name="en-us_topic_0105284966__li20455419113913"></a><a name="li20455419113913"></a><strong id="en-us_topic_0105284966__b1245571913391">mongo --host</strong> &lt;<em id="en-us_topic_0105284966__i54562197392">DB_HOST</em>&gt; <strong id="en-us_topic_0105284966__b1045691917395">--port</strong> &lt;<em id="en-us_topic_0105284966__i194566199394">DB_PORT</em>&gt; <strong id="en-us_topic_0105284966__b845641914399">-u</strong> &lt;<em id="en-us_topic_0105284966__i84566199390">DB_USER</em>&gt; <strong id="en-us_topic_0105284966__b124561319163919">-p</strong> <strong id="en-us_topic_0105284966__b945631916395">--authenticationDatabase</strong><strong id="en-us_topic_0105284966__b8456919123910"> admin </strong><strong id="en-us_topic_0105284966__b345641917391">--ssl --sslCAFile</strong> &lt;<em id="en-us_topic_0105284966__i345621913395">FILE_PATH</em>&gt; <strong id="en-us_topic_0105284966__b1645601913399">--sslAllowInvalidHostnames</strong></p> </p></li><li id="en-us_topic_0105284966__li15455181914394"><span>Connect to a <span class="keyword" id="en-us_topic_0105284966__keyword6500122382510">DDS DB instance</span>.</span><p><ul id="en-us_topic_0105284966__ul104559191391"><li id="en-us_topic_0105284966__li20455419113913">Method 1: Using standard parameters<pre class="codeblock" id="en-us_topic_0105284966__codeblock790915152916"><strong id="en-us_topic_0105284966__b169171315997">mongo --host</strong> &lt;<em id="en-us_topic_0105284966__i19171115591">DB_HOST</em>&gt; <strong id="en-us_topic_0105284966__b14917111512916">--port</strong> &lt;<em id="en-us_topic_0105284966__i1791731514915">DB_PORT</em>&gt; <strong id="en-us_topic_0105284966__b1491719154915">-u</strong> &lt;<em id="en-us_topic_0105284966__i1917141514911">DB_USER</em>&gt; <strong id="en-us_topic_0105284966__b11917915891">-p</strong> <strong id="en-us_topic_0105284966__b991718151599">--authenticationDatabase</strong><strong id="en-us_topic_0105284966__b1891719151794"> admin </strong><strong id="en-us_topic_0105284966__b189174151192">--ssl --sslCAFile</strong> &lt;<em id="en-us_topic_0105284966__i1691771515913">FILE_PATH</em>&gt; <strong id="en-us_topic_0105284966__b1291712151698">--sslAllowInvalidHostnames</strong></pre>
<p id="en-us_topic_0105284966__p245651914391">Enter the database account password when prompted:</p> <p id="en-us_topic_0105284966__p245651914391">Enter the database account password when prompted:</p>
<pre class="screen" id="en-us_topic_0105284966__screen145671916398">Enter password:</pre> <pre class="screen" id="en-us_topic_0105284966__screen145671916398">Enter password:</pre>
</li><li id="en-us_topic_0105284966__li1645681913915">Method 2: Using standard URI format<p id="en-us_topic_0105284966__p245613197396"><a name="en-us_topic_0105284966__li1645681913915"></a><a name="li1645681913915"></a><strong id="en-us_topic_0105284966__b1145651973918"><strong id="en-us_topic_0105284966__b1456131983910">mongo</strong></strong> <strong id="en-us_topic_0105284966__b9456191953910">"mongodb://rwuser:</strong>&lt;password&gt;<strong id="en-us_topic_0105284966__b14456201973912">@</strong><em id="en-us_topic_0105284966__i1345671983915">&lt;</em><em id="en-us_topic_0105284966__i104579197396">DB_HOST</em><em id="en-us_topic_0105284966__i1745720191393">1&gt;</em><strong id="en-us_topic_0105284966__b1445791933913">:</strong><em id="en-us_topic_0105284966__i445701917399">&lt;</em><em id="en-us_topic_0105284966__i145731933919">DB_PORT1</em><em id="en-us_topic_0105284966__i17457181933917">&gt;</em><strong id="en-us_topic_0105284966__b2457181973911">,</strong><em id="en-us_topic_0105284966__i124572192395">&lt;</em><em id="en-us_topic_0105284966__i10457101993913">DB_HOST</em><em id="en-us_topic_0105284966__i20457819133910">2&gt;</em><strong id="en-us_topic_0105284966__b745791913398">:</strong><em id="en-us_topic_0105284966__i12457219113917">&lt;</em><em id="en-us_topic_0105284966__i7457719133917">DB_PORT2</em><em id="en-us_topic_0105284966__i8457101915394">&gt;</em><strong id="en-us_topic_0105284966__b545721919393">/test?authSource=admin&amp;replicaSet=replic</strong><strong id="en-us_topic_0105284966__b1745715192398">a"</strong> <strong id="en-us_topic_0105284966__b174577197398">--</strong><strong id="en-us_topic_0105284966__b6458121912396">ssl --sslCAFile</strong> <em id="en-us_topic_0105284966__i6458191917397">&lt;</em><em id="en-us_topic_0105284966__i2045881920391">FILE_PATH</em><em id="en-us_topic_0105284966__i34581119143910">&gt;</em> <strong id="en-us_topic_0105284966__b204581119173912">--sslAllowInvalidHostnames</strong></p> </li><li id="en-us_topic_0105284966__li1645681913915">Method 2: Using standard URI format<pre class="codeblock" id="en-us_topic_0105284966__codeblock228062620914"><strong id="en-us_topic_0105284966__b32811826497"><strong id="en-us_topic_0105284966__b228172619910">mongo</strong></strong> <strong id="en-us_topic_0105284966__b1628116261794">"mongodb://rwuser:</strong>&lt;password&gt;<strong id="en-us_topic_0105284966__b9281192616917">@</strong><em id="en-us_topic_0105284966__i132817266917">&lt;</em><em id="en-us_topic_0105284966__i12281526899">DB_HOST</em><em id="en-us_topic_0105284966__i62817261999">1&gt;</em><strong id="en-us_topic_0105284966__b1128142612910">:</strong><em id="en-us_topic_0105284966__i828162618912">&lt;</em><em id="en-us_topic_0105284966__i162819261913">DB_PORT1</em><em id="en-us_topic_0105284966__i828192616910">&gt;</em><strong id="en-us_topic_0105284966__b22814262913">,</strong><em id="en-us_topic_0105284966__i132813262916">&lt;</em><em id="en-us_topic_0105284966__i132818263910">DB_HOST</em><em id="en-us_topic_0105284966__i3281172615915">2&gt;</em><strong id="en-us_topic_0105284966__b182814262910">:</strong><em id="en-us_topic_0105284966__i128182613911">&lt;</em><em id="en-us_topic_0105284966__i1428122619916">DB_PORT2</em><em id="en-us_topic_0105284966__i528122618913">&gt;</em><strong id="en-us_topic_0105284966__b4281102613913">/test?authSource=admin&amp;replicaSet=replic</strong><strong id="en-us_topic_0105284966__b1228117261894">a"</strong> <strong id="en-us_topic_0105284966__b72814261197">--</strong><strong id="en-us_topic_0105284966__b6281142611913">ssl --sslCAFile</strong> <em id="en-us_topic_0105284966__i72818261898">&lt;</em><em id="en-us_topic_0105284966__i1281172614913">FILE_PATH</em><em id="en-us_topic_0105284966__i428117265910">&gt;</em> <strong id="en-us_topic_0105284966__b142814267911">--sslAllowInvalidHostnames</strong></pre>
<p id="en-us_topic_0105284966__p494013221914">If the DB instance is connected using the connection address, add double quotation marks before and after the connection information. The connection information can be obtained in the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol16162256194714"><b>Address</b></span> column on the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol181631756104710"><b>Instance Management</b></span> page.</p> <p id="en-us_topic_0105284966__p494013221914">If the DB instance is connected using the connection address, add double quotation marks before and after the connection information. The connection information can be obtained in the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol16162256194714"><b>Address</b></span> column on the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol181631756104710"><b>Instance Management</b></span> page.</p>
</li></ul> </li></ul>
<div class="note" id="en-us_topic_0105284966__note12458119143913"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0105284966__ul1945891912390"><li id="en-us_topic_0105284966__li0458151916393">A replica set instance uses the management IP address to generate SSL certificate. <strong id="en-us_topic_0105284966__b1772414915416">--sslAllowInvalidHostnames</strong> is needed for the SSL connection through a private network.</li><li id="en-us_topic_0105284966__li14458419123913"><strong id="en-us_topic_0105284966__b1962184153210">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol1662334183211"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol1062319416323"><b>Connections</b></span> page.</li><li id="en-us_topic_0105284966__li13459141933920"><strong id="en-us_topic_0105284966__b465616115339">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="en-us_topic_0105284966__uicontrol12656111116338"><b>Database Port</b></span> in the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol3656141173312"><b>Basic Information</b></span> area on the <strong id="en-us_topic_0105284966__b1765820114336">Connections</strong> page.</li><li id="en-us_topic_0105284966__li204883719125"><strong id="en-us_topic_0105284966__b74815376122">DB_HOST </strong>and <strong id="en-us_topic_0105284966__b148153781211">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="en-us_topic_0105284966__li1481537201215"><strong id="en-us_topic_0105284966__b44815376126">DB_USER</strong> indicates the database account name. The default value is <strong id="en-us_topic_0105284966__b648113719129">rwuser</strong>.</li><li id="en-us_topic_0105284966__li1738784282913"><strong id="en-us_topic_0105284966__b038794252912"><em id="en-us_topic_0105284966__i173871642202919">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="en-us_topic_0105284966__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="en-us_topic_0105284966__li54601619123914"><strong id="en-us_topic_0105284966__b175641352890">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul> <div class="note" id="en-us_topic_0105284966__note12458119143913"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0105284966__ul1945891912390"><li id="en-us_topic_0105284966__li0458151916393">A replica set instance uses the management IP address to generate SSL certificate. <strong id="en-us_topic_0105284966__b1772414915416">--sslAllowInvalidHostnames</strong> is needed for the SSL connection through a private network.</li><li id="en-us_topic_0105284966__li14458419123913"><strong id="en-us_topic_0105284966__b1962184153210">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol1662334183211"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol1062319416323"><b>Connections</b></span> page.</li><li id="en-us_topic_0105284966__li13459141933920"><strong id="en-us_topic_0105284966__b465616115339">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="en-us_topic_0105284966__uicontrol12656111116338"><b>Database Port</b></span> in the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol3656141173312"><b>Basic Information</b></span> area on the <strong id="en-us_topic_0105284966__b1765820114336">Connections</strong> page.</li><li id="en-us_topic_0105284966__li204883719125"><strong id="en-us_topic_0105284966__b74815376122">DB_HOST </strong>and <strong id="en-us_topic_0105284966__b148153781211">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="en-us_topic_0105284966__li1481537201215"><strong id="en-us_topic_0105284966__b44815376126">DB_USER</strong> indicates the database account name. The default value is <strong id="en-us_topic_0105284966__b648113719129">rwuser</strong>.</li><li id="en-us_topic_0105284966__li1738784282913"><strong id="en-us_topic_0105284966__b038794252912"><em id="en-us_topic_0105284966__i173871642202919">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="en-us_topic_0105284966__li122761750202211">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li><li id="en-us_topic_0105284966__li54601619123914"><strong id="en-us_topic_0105284966__b175641352890">FILE_PATH</strong> indicates the path where the root certificate is stored.</li></ul>
</div></div> </div></div>
<ul id="en-us_topic_0105284966__ul546017197393"><li id="en-us_topic_0105284966__li154601519163917">Connect to the instance using standard parameters. The following is an example command:<p id="en-us_topic_0105284966__p2460191919396"><a name="en-us_topic_0105284966__li154601519163917"></a><a name="li154601519163917"></a><strong id="en-us_topic_0105284966__b114601819103912">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="en-us_topic_0105284966__b13460131953911">--sslAllowInvalidHostnames</strong></p> <ul id="en-us_topic_0105284966__ul546017197393"><li id="en-us_topic_0105284966__li154601519163917">Connect to the instance using standard parameters. The following is an example command:<pre class="codeblock" id="en-us_topic_0105284966__codeblock19998184112914"><strong id="en-us_topic_0105284966__b699834117911">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin --ssl --sslCAFile /tmp/ca.crt</strong> <strong id="en-us_topic_0105284966__b1099820411590">--sslAllowInvalidHostnames</strong></pre>
</li><li id="en-us_topic_0105284966__li1946020192399">Connect to the DB instance using standard URI format. The following is an example command:<p id="en-us_topic_0105284966__p16461171914399"><a name="en-us_topic_0105284966__li1946020192399"></a><a name="li1946020192399"></a><strong id="en-us_topic_0105284966__b4461171916397"><strong id="en-us_topic_0105284966__b1946131983919">mongo</strong></strong> <strong id="en-us_topic_0105284966__b16461819103918">"mongodb://rwuser:&lt;password&gt;@</strong><strong id="en-us_topic_0105284966__b9461719173920">192.168.1.6</strong><strong id="en-us_topic_0105284966__b34612196397">:</strong><strong id="en-us_topic_0105284966__b546116194394">8635,<strong id="en-us_topic_0105284966__b24611919133911">192.168.1.80</strong><strong id="en-us_topic_0105284966__b18461201923919">:</strong><strong id="en-us_topic_0105284966__b1846181910396">8635</strong></strong><strong id="en-us_topic_0105284966__b946151917392">/test?authSource=admin&amp;replicaSet=replica<strong id="en-us_topic_0105284966__b446111194399">"</strong></strong> <strong id="en-us_topic_0105284966__b946161933917">--ssl --sslCAFile</strong> <strong id="en-us_topic_0105284966__b946114193392">/tmp/ca.crt</strong> <strong id="en-us_topic_0105284966__b046111912393">--sslAllowInvalidHostnames</strong></p> </li><li id="en-us_topic_0105284966__li1946020192399">Connect to the DB instance using standard URI format. The following is an example command:<pre class="codeblock" id="en-us_topic_0105284966__codeblock73375491697"><strong id="en-us_topic_0105284966__b033754919917"><strong id="en-us_topic_0105284966__b183371249890">mongo</strong></strong> <strong id="en-us_topic_0105284966__b10337349591">"mongodb://rwuser:&lt;password&gt;@</strong><strong id="en-us_topic_0105284966__b933813491394">192.168.1.6</strong><strong id="en-us_topic_0105284966__b53384495913">:</strong><strong id="en-us_topic_0105284966__b143381549991">8635,<strong id="en-us_topic_0105284966__b83385497914">192.168.1.80</strong><strong id="en-us_topic_0105284966__b11338194918916">:</strong><strong id="en-us_topic_0105284966__b1133810491195">8635</strong></strong><strong id="en-us_topic_0105284966__b83387491592">/test?authSource=admin&amp;replicaSet=replica<strong id="en-us_topic_0105284966__b1633815495910">"</strong></strong> <strong id="en-us_topic_0105284966__b1433834916911">--ssl --sslCAFile</strong> <strong id="en-us_topic_0105284966__b933817491397">/tmp/ca.crt</strong> <strong id="en-us_topic_0105284966__b633818491896">--sslAllowInvalidHostnames</strong></pre>
</li></ul> </li></ul>
</p></li><li id="en-us_topic_0105284966__li18461819163917"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><ul id="en-us_topic_0105284966__ul10461151914395"><li id="en-us_topic_0105284966__li1146141993919">Result from connecting to the primary node in a replica set or connecting to the whole replica set:<pre class="screen" id="en-us_topic_0105284966__screen3461151963916">replica:PRIMARY&gt;</pre> </p></li><li id="en-us_topic_0105284966__li18461819163917"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><ul id="en-us_topic_0105284966__ul10461151914395"><li id="en-us_topic_0105284966__li1146141993919">Result from connecting to the primary node in a replica set or connecting to the whole replica set:<pre class="screen" id="en-us_topic_0105284966__screen3461151963916">replica:PRIMARY&gt;</pre>
</li><li id="en-us_topic_0105284966__li24613190397">Result from connecting the secondary node in a replica set:<pre class="screen" id="en-us_topic_0105284966__screen15461181917395">replica:SECONDARY&gt;</pre> </li><li id="en-us_topic_0105284966__li24613190397">Result from connecting the secondary node in a replica set:<pre class="screen" id="en-us_topic_0105284966__screen15461181917395">replica:SECONDARY&gt;</pre>
@ -36,16 +36,16 @@
</div> </div>
<div class="section" id="en-us_topic_0105284966__en-us_topic_0085335422_sfc3bfb212a8440799f49320d91fc096c"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="en-us_topic_0105284966__en-us_topic_0085335422_note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="en-us_topic_0105284966__p8755899182235">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p> <div class="section" id="en-us_topic_0105284966__en-us_topic_0085335422_sfc3bfb212a8440799f49320d91fc096c"><h4 class="sectiontitle">Connecting to a DB Instance Using the MongoDB Client (Non-SSL)</h4><div class="notice" id="en-us_topic_0105284966__en-us_topic_0085335422_note45712120182235"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="en-us_topic_0105284966__p8755899182235">If you connect to a DB instance using this method, disable the SSL connection. For details, see section <a href="dds_03_0074.html#dds_03_0074__section4225593518277">Disabling SSL</a>.</p>
</div></div> </div></div>
<ol id="en-us_topic_0105284966__en-us_topic_0085335422_o12386b3d9147482881ddfdfd9a3f787c"><li id="en-us_topic_0105284966__en-us_topic_0085335422_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to a <span class="keyword" id="en-us_topic_0105284966__keyword83281730165817">DDS DB instance</span>.</span><p><ul id="en-us_topic_0105284966__ul7658651537"><li id="en-us_topic_0105284966__li465816511239">Method 1: Using standard parameters<p id="en-us_topic_0105284966__en-us_topic_0085335422_p6129489612597"><a name="en-us_topic_0105284966__li465816511239"></a><a name="li465816511239"></a><strong id="en-us_topic_0105284966__en-us_topic_0085335422_b24308785171016">mongo --host</strong> &lt;<em id="en-us_topic_0105284966__en-us_topic_0085335422_i3943596517931">DB_HOST</em>&gt; <strong id="en-us_topic_0105284966__en-us_topic_0085335422_b51875524143035">--port</strong> &lt;<em id="en-us_topic_0105284966__en-us_topic_0085335422_i6462580917936">DB_PORT</em>&gt; <strong id="en-us_topic_0105284966__en-us_topic_0085335422_b26007606165312">-u</strong> &lt;<em id="en-us_topic_0105284966__en-us_topic_0085335422_i562728517940">DB_USER</em>&gt; <strong id="en-us_topic_0105284966__b185111416356">-p</strong> <strong id="en-us_topic_0105284966__en-us_topic_0085335422_b4258861217920">--authenticationDatabase</strong> <strong id="en-us_topic_0105284966__b9828348183514">admin</strong></p> <ol id="en-us_topic_0105284966__en-us_topic_0085335422_o12386b3d9147482881ddfdfd9a3f787c"><li id="en-us_topic_0105284966__en-us_topic_0085335422_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to a <span class="keyword" id="en-us_topic_0105284966__keyword83281730165817">DDS DB instance</span>.</span><p><ul id="en-us_topic_0105284966__ul7658651537"><li id="en-us_topic_0105284966__li465816511239">Method 1: Using standard parameters<pre class="codeblock" id="en-us_topic_0105284966__codeblock967032121317"><strong id="en-us_topic_0105284966__b4679122115134">mongo --host</strong> &lt;<em id="en-us_topic_0105284966__i1967932121318">DB_HOST</em>&gt; <strong id="en-us_topic_0105284966__b06792215134">--port</strong> &lt;<em id="en-us_topic_0105284966__i26791221131318">DB_PORT</em>&gt; <strong id="en-us_topic_0105284966__b11679121191315">-u</strong> &lt;<em id="en-us_topic_0105284966__i106791321121312">DB_USER</em>&gt; <strong id="en-us_topic_0105284966__b1867910218139">-p</strong> <strong id="en-us_topic_0105284966__b5679521181318">--authenticationDatabase</strong> <strong id="en-us_topic_0105284966__b186796219139">admin</strong></pre>
<p id="en-us_topic_0105284966__p114291045245">Enter the database account password when prompted:</p> <p id="en-us_topic_0105284966__p114291045245">Enter the database account password when prompted:</p>
<pre class="screen" id="en-us_topic_0105284966__screen5430184517413">Enter password:</pre> <pre class="screen" id="en-us_topic_0105284966__screen5430184517413">Enter password:</pre>
</li><li id="en-us_topic_0105284966__li7480185615311">Method 2: Using unencrypted connection<p id="en-us_topic_0105284966__p116802419435"><a name="en-us_topic_0105284966__li7480185615311"></a><a name="li7480185615311"></a><strong id="en-us_topic_0105284966__b988273245520">mongo "</strong><strong id="en-us_topic_0105284966__b1588663275511">mongodb://rwuser:</strong>&lt;password&gt;<strong id="en-us_topic_0105284966__b1988923212558">@</strong><em id="en-us_topic_0105284966__i13891143212556">&lt;</em><em id="en-us_topic_0105284966__i158921032135516">DB_HOST</em><em id="en-us_topic_0105284966__i19893032105515">1&gt;</em><strong id="en-us_topic_0105284966__b58934329552">:</strong><em id="en-us_topic_0105284966__i989363211558">&lt;</em><em id="en-us_topic_0105284966__i289516329557">DB_PORT</em><em id="en-us_topic_0105284966__i496295511591">1&gt;</em><strong id="en-us_topic_0105284966__b2968205511595">,</strong><em id="en-us_topic_0105284966__i146831851005"><em id="en-us_topic_0105284966__i86831651504">&lt;</em><em id="en-us_topic_0105284966__i1268317518017">DB_HOST</em><em id="en-us_topic_0105284966__i56831456017">2&gt;</em></em><strong id="en-us_topic_0105284966__b96871857019">:</strong><em id="en-us_topic_0105284966__i36841655014"><em id="en-us_topic_0105284966__i1368415517015">&lt;</em><em id="en-us_topic_0105284966__i15684851406">DB_PORT</em><em id="en-us_topic_0105284966__i1868416518020">2&gt;</em></em><strong id="en-us_topic_0105284966__b5905123275512">/test?authSource=admin&amp;replicaSet=replica</strong><strong id="en-us_topic_0105284966__b69061932155511">"</strong></p> </li><li id="en-us_topic_0105284966__li7480185615311">Method 2: Using unencrypted connection<pre class="codeblock" id="en-us_topic_0105284966__codeblock797110263133"><strong id="en-us_topic_0105284966__b298032618133">mongo "</strong><strong id="en-us_topic_0105284966__b129801626111316">mongodb://rwuser:</strong>&lt;password&gt;<strong id="en-us_topic_0105284966__b49801426101311">@</strong><em id="en-us_topic_0105284966__i59802269132">&lt;</em><em id="en-us_topic_0105284966__i09809269139">DB_HOST</em><em id="en-us_topic_0105284966__i11980162691316">1&gt;</em><strong id="en-us_topic_0105284966__b19808268131">:</strong><em id="en-us_topic_0105284966__i1898052621312">&lt;</em><em id="en-us_topic_0105284966__i39805268134">DB_PORT</em><em id="en-us_topic_0105284966__i179803266133">1&gt;</em><strong id="en-us_topic_0105284966__b09801726191310">,</strong><em id="en-us_topic_0105284966__i15980326181312"><em id="en-us_topic_0105284966__i298032611313">&lt;</em><em id="en-us_topic_0105284966__i598092620131">DB_HOST</em><em id="en-us_topic_0105284966__i199801426111318">2&gt;</em></em><strong id="en-us_topic_0105284966__b14980162661312">:</strong><em id="en-us_topic_0105284966__i1898022618134"><em id="en-us_topic_0105284966__i19980112641310">&lt;</em><em id="en-us_topic_0105284966__i39801926151319">DB_PORT</em><em id="en-us_topic_0105284966__i098052631310">2&gt;</em></em><strong id="en-us_topic_0105284966__b1980152615131">/test?authSource=admin&amp;replicaSet=replica</strong><strong id="en-us_topic_0105284966__b1980326131311">"</strong></pre>
<p id="en-us_topic_0105284966__p10718521182714">If the DB instance is connected using the connection address, add double quotation marks before and after the connection information. The connection information can be obtained in the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol16372125025113"><b>Address</b></span> column on the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol8373195015514"><b>Instance Management</b></span> page.</p> <p id="en-us_topic_0105284966__p10718521182714">If the DB instance is connected using the connection address, add double quotation marks before and after the connection information. The connection information can be obtained in the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol16372125025113"><b>Address</b></span> column on the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol8373195015514"><b>Instance Management</b></span> page.</p>
</li></ul> </li></ul>
<div class="note" id="en-us_topic_0105284966__note839816116261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0105284966__ul10720641042"><li id="en-us_topic_0105284966__li67211141348"><strong id="en-us_topic_0105284966__b299552919335">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol0997929133318"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol14998172916333"><b>Connections</b></span> page.</li><li id="en-us_topic_0105284966__li2729114846"><strong id="en-us_topic_0105284966__b188144973316">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="en-us_topic_0105284966__uicontrol31194914338"><b>Database Port</b></span> in the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol3121449183311"><b>Basic Information</b></span> area on the <strong id="en-us_topic_0105284966__b2129493336">Connections</strong> page.</li><li id="en-us_topic_0105284966__li834474117181"><strong id="en-us_topic_0105284966__b7344184191819">DB_HOST </strong>and <strong id="en-us_topic_0105284966__b034454121813">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="en-us_topic_0105284966__li1834410416181"><strong id="en-us_topic_0105284966__b83443415186">DB_USER</strong> indicates the database account name. The default value is <strong id="en-us_topic_0105284966__b434494151817">rwuser</strong>.</li><li id="en-us_topic_0105284966__li14146118113015"><strong id="en-us_topic_0105284966__b0146189309"><em id="en-us_topic_0105284966__i21460810308">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="en-us_topic_0105284966__li13566111120306">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul> <div class="note" id="en-us_topic_0105284966__note839816116261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0105284966__ul10720641042"><li id="en-us_topic_0105284966__li67211141348"><strong id="en-us_topic_0105284966__b299552919335">DB_HOST</strong> indicates the IP address of the remotely connected DB instance. Obtain the value from the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol0997929133318"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol14998172916333"><b>Connections</b></span> page.</li><li id="en-us_topic_0105284966__li2729114846"><strong id="en-us_topic_0105284966__b188144973316">DB_PORT</strong> indicates the port number. Obtain the value from <span class="uicontrol" id="en-us_topic_0105284966__uicontrol31194914338"><b>Database Port</b></span> in the <span class="uicontrol" id="en-us_topic_0105284966__uicontrol3121449183311"><b>Basic Information</b></span> area on the <strong id="en-us_topic_0105284966__b2129493336">Connections</strong> page.</li><li id="en-us_topic_0105284966__li834474117181"><strong id="en-us_topic_0105284966__b7344184191819">DB_HOST </strong>and <strong id="en-us_topic_0105284966__b034454121813">DB_PORT</strong> can also be obtained from the Node Information area on the Basic Information page.</li><li id="en-us_topic_0105284966__li1834410416181"><strong id="en-us_topic_0105284966__b83443415186">DB_USER</strong> indicates the database account name. The default value is <strong id="en-us_topic_0105284966__b434494151817">rwuser</strong>.</li><li id="en-us_topic_0105284966__li14146118113015"><strong id="en-us_topic_0105284966__b0146189309"><em id="en-us_topic_0105284966__i21460810308">&lt;password&gt;</em></strong> indicates the password of the database account. If the password contains at signs (@),exclamation marks (!), or percent signs (%), replace them with hexadecimal URL codes %40, %21, and %25 respectively.</li><li id="en-us_topic_0105284966__li13566111120306">If user inputs this command then the password will be stored in logfiles and can be found in linux history, and in process list. So please note that plaintext passwords are risky.</li></ul>
</div></div> </div></div>
<ul id="en-us_topic_0105284966__ul4976132291217"><li id="en-us_topic_0105284966__li4976122201215">Connect to the instance using standard parameters. The following is an example command:<p id="en-us_topic_0105284966__p1270672415120"><a name="en-us_topic_0105284966__li4976122201215"></a><a name="li4976122201215"></a><strong id="en-us_topic_0105284966__b7976192218127">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></p> <ul id="en-us_topic_0105284966__ul4976132291217"><li id="en-us_topic_0105284966__li4976122201215">Connect to the instance using standard parameters. The following is an example command:<pre class="codeblock" id="en-us_topic_0105284966__codeblock17333174221312"><strong id="en-us_topic_0105284966__b17333164210135">mongo --host 192.168.1.6 --port 8635 -u rwuser -p --authenticationDatabase admin</strong></pre>
</li><li id="en-us_topic_0105284966__li897632219129">Connect to the DB instance using standard URI format. The following is an example command:<p id="en-us_topic_0105284966__p7633267124"><a name="en-us_topic_0105284966__li897632219129"></a><a name="li897632219129"></a><strong id="en-us_topic_0105284966__b1097632261220">mongo "</strong><strong id="en-us_topic_0105284966__b5976522111210">mongodb://rwuser:&lt;password&gt;@</strong><strong id="en-us_topic_0105284966__b93894477112">192.168.1.6</strong><strong id="en-us_topic_0105284966__b83922047111119">:</strong><strong id="en-us_topic_0105284966__b13394447111112">8635,<strong id="en-us_topic_0105284966__b839694711114">192.168.1.80</strong><strong id="en-us_topic_0105284966__b439714771111">:</strong><strong id="en-us_topic_0105284966__b1239874731114">8635</strong></strong><strong id="en-us_topic_0105284966__b5619423155910">/test?authSource=admin&amp;replicaSet=repli</strong><strong id="en-us_topic_0105284966__b6416112418594">ca</strong><strong id="en-us_topic_0105284966__b6419524115917">"</strong></p> </li><li id="en-us_topic_0105284966__li897632219129">Connect to the DB instance using standard URI format. The following is an example command:<pre class="codeblock" id="en-us_topic_0105284966__codeblock99221046131313"><strong id="en-us_topic_0105284966__b79221446141317">mongo "</strong><strong id="en-us_topic_0105284966__b9922184661318">mongodb://rwuser:&lt;password&gt;@</strong><strong id="en-us_topic_0105284966__b129221246101318">192.168.1.6</strong><strong id="en-us_topic_0105284966__b17922204671320">:</strong><strong id="en-us_topic_0105284966__b492294621310">8635,<strong id="en-us_topic_0105284966__b292224616138">192.168.1.80</strong><strong id="en-us_topic_0105284966__b15922114691310">:</strong><strong id="en-us_topic_0105284966__b17922546121312">8635</strong></strong><strong id="en-us_topic_0105284966__b10923546111313">/test?authSource=admin&amp;replicaSet=repli</strong><strong id="en-us_topic_0105284966__b29231746151318">ca</strong><strong id="en-us_topic_0105284966__b59231746101314">"</strong></pre>
</li></ul> </li></ul>
</p></li><li id="en-us_topic_0105284966__en-us_topic_0085335422_li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><ul id="en-us_topic_0105284966__en-us_topic_0085335422_ul18161746175515"><li id="en-us_topic_0105284966__en-us_topic_0085335422_li1220246105512">Result from connecting to the primary node in a replica set or connecting to the whole replica set:<pre class="screen" id="en-us_topic_0105284966__en-us_topic_0085335422_screen168161854104">replica:PRIMARY&gt;</pre> </p></li><li id="en-us_topic_0105284966__en-us_topic_0085335422_li2356085813016"><span>Check the connection result. If the following information is displayed, the connection is successful.</span><p><ul id="en-us_topic_0105284966__en-us_topic_0085335422_ul18161746175515"><li id="en-us_topic_0105284966__en-us_topic_0085335422_li1220246105512">Result from connecting to the primary node in a replica set or connecting to the whole replica set:<pre class="screen" id="en-us_topic_0105284966__en-us_topic_0085335422_screen168161854104">replica:PRIMARY&gt;</pre>
</li><li id="en-us_topic_0105284966__en-us_topic_0085335422_li202171754198">Result from connecting the secondary node in a replica set:<pre class="screen" id="en-us_topic_0105284966__en-us_topic_0085335422_screen699818159103">replica:SECONDARY&gt;</pre> </li><li id="en-us_topic_0105284966__en-us_topic_0085335422_li202171754198">Result from connecting the secondary node in a replica set:<pre class="screen" id="en-us_topic_0105284966__en-us_topic_0085335422_screen699818159103">replica:SECONDARY&gt;</pre>

View File

@ -1,7 +1,7 @@
<a name="en-us_topic_slow_query_log"></a><a name="en-us_topic_slow_query_log"></a> <a name="en-us_topic_slow_query_log"></a><a name="en-us_topic_slow_query_log"></a>
<h1 class="topictitle1">Slow Query Log</h1> <h1 class="topictitle1">Slow Query Logs</h1>
<div id="body3649754"><div class="section" id="en-us_topic_slow_query_log__section204641425278"><h4 class="sectiontitle"><strong id="en-us_topic_slow_query_log__b268815255258">Scenarios</strong></h4><p id="en-us_topic_slow_query_log__p13875441232">Slow query logs record statements whose execution period exceeds the value of <span class="parmname" id="en-us_topic_slow_query_log__parmname66211354831"><b>operationProfiling.slowOpThresholdMs</b></span> (100 ms by default). With slow query logs, you can identify and optimize slowly executed statements.</p> <div id="body3649754"><div class="section" id="en-us_topic_slow_query_log__section204641425278"><h4 class="sectiontitle"><strong id="en-us_topic_slow_query_log__b268815255258">Scenarios</strong></h4><p id="en-us_topic_slow_query_log__p13875441232">Slow query logs record statements whose execution period exceeds the value of <span class="parmname" id="en-us_topic_slow_query_log__parmname66211354831"><b>operationProfiling.slowOpThresholdMs</b></span> (500 ms by default). With slow query logs, you can identify and optimize slowly executed statements.</p>
<div class="note" id="en-us_topic_slow_query_log__note527315240277"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_slow_query_log__p527411247271">If the user would like to change this, they can do this in Section <a href="en-us_topic_configuration.html">Modifying a Parameter Template</a>.</p> <div class="note" id="en-us_topic_slow_query_log__note527315240277"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_slow_query_log__p527411247271">If the user would like to change this, they can do this in Section <a href="en-us_topic_configuration.html">Modifying a Parameter Template</a>.</p>
</div></div> </div></div>
</div> </div>

View File

@ -26,6 +26,8 @@
</li> </li>
<li class="ulchildlink"><strong><a href="dds_01_0060.html">Mapping Between DDS Versions and Community Versions</a></strong><br> <li class="ulchildlink"><strong><a href="dds_01_0060.html">Mapping Between DDS Versions and Community Versions</a></strong><br>
</li> </li>
<li class="ulchildlink"><strong><a href="dds_01_0061.html">Version Information</a></strong><br>
</li>
</ul> </ul>
</div> </div>