doc-exports/docs/rds/umn/rds_faq_0020.html
Wang , Deng Ke 79b1bc1455 RDS UMN 20221101 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2023-01-09 10:26:58 +00:00

23 lines
4.4 KiB
HTML

<a name="rds_faq_0020"></a><a name="rds_faq_0020"></a>
<h1 class="topictitle1">What Should I Do If an ECS Cannot Connect to an RDS DB Instance Through a Private Network?</h1>
<div id="body8662426"><p id="rds_faq_0020__a87b595e255af4bbba30ea7c788c79ce2">Perform the following steps to identify the problem:</p>
<ol id="rds_faq_0020__o087c1bc60468439faeb84f5ab806e135"><li id="rds_faq_0020__l2fc29eea67f148a3915e5fe170868f08"><span>Check whether the <span id="rds_faq_0020__text589827185610">ECS</span> and <span id="rds_faq_0020__text17163125818533">RDS</span> DB instances are located in the same VPC.</span><p><ul id="rds_faq_0020__u75da24560aa14d398cbf2da7c43e4aff"><li id="rds_faq_0020__lc92a40e1c35a4ce183476886d03c1c3a">If they are in the same VPC, go to <a href="#rds_faq_0020__l76760374fb794a8d9b961321c13f386d">2</a>.</li><li id="rds_faq_0020__l453cc6ae4b274f7ba45bb8b91e929229">If they are in different VPCs, create an <span id="rds_faq_0020__text15696165562">ECS</span> in the VPC in which the <span id="rds_faq_0020__text64437717447">RDS</span> DB instance is located.</li></ul>
</p></li><li id="rds_faq_0020__l76760374fb794a8d9b961321c13f386d"><a name="rds_faq_0020__l76760374fb794a8d9b961321c13f386d"></a><a name="l76760374fb794a8d9b961321c13f386d"></a><span>Check whether a security group has been added to the <span id="rds_faq_0020__text72601320125617">ECS</span>.</span><p><ul id="rds_faq_0020__ubd0fa5a8b11c4445996c25134fd0d649"><li id="rds_faq_0020__lc458df3aa74b40ffa33703fdd08b3ac9">If a security group has been added, check whether the rules are configured correctly.<p id="rds_faq_0020__en-us_topic_0086557018_p347212255820"><a name="rds_faq_0020__lc458df3aa74b40ffa33703fdd08b3ac9"></a><a name="lc458df3aa74b40ffa33703fdd08b3ac9"></a>For MySQL DB instances, see the security group description in <a href="rds_02_0008.html">Step 1: Create a DB Instance</a>. Then, go to <a href="#rds_faq_0020__lbdf6c75fe0be4c37879e3354bc192d36">3</a>.</p>
<p id="rds_faq_0020__afb9590ca5d304e2abc3312d68f1c5d30">For PostgreSQL DB instances, see the security group description in <a href="rds_03_0065.html">Step 1: Create a DB Instance</a>. Then, go to <a href="#rds_faq_0020__lbdf6c75fe0be4c37879e3354bc192d36">3</a>.</p>
<p id="rds_faq_0020__a715a2b3043f64527896cc1c84f235225">For Microsoft SQL Server DB instances, see the security group description in <a href="rds_04_0061.html">Step 1: Create a DB Instance</a>. Then, go to <a href="#rds_faq_0020__lbdf6c75fe0be4c37879e3354bc192d36">3</a>.</p>
</li><li id="rds_faq_0020__l68e0b12d7c1b4425a98a135aa9dc07ad">If no security group has been added, go to the VPC console from the <span id="rds_faq_0020__text101592515617">ECS</span> details page and click <strong id="rds_faq_0020__b738121312131">Security Groups</strong> to add a security group.</li></ul>
</p></li><li id="rds_faq_0020__lbdf6c75fe0be4c37879e3354bc192d36"><a name="rds_faq_0020__lbdf6c75fe0be4c37879e3354bc192d36"></a><a name="lbdf6c75fe0be4c37879e3354bc192d36"></a><span>On the ECS, check whether the <span id="rds_faq_0020__text33410415449">RDS</span> DB instance port can be connected.</span><p><p id="rds_faq_0020__aa8d5ff705b5e4d85a69d5e1fb841bc4d">The default port of RDS for MySQL is <strong id="rds_faq_0020__b276417517439">3306</strong>.</p>
<p id="rds_faq_0020__a2313295a53e7442c93ca38fdb70a9055">The default port of RDS for PostgreSQL is <strong id="rds_faq_0020__b1631803914318">5432</strong>.</p>
<p id="rds_faq_0020__a8ca76bf6eb8349d189a1529bbbdba1c4">The default RDS for Microsoft SQL Server port number is <strong id="rds_faq_0020__b842352706153515">1433</strong>.</p>
<pre class="screen" id="rds_faq_0020__s6c0ef94be87d4c9b8636ea316166dafe"><strong id="rds_faq_0020__b884210425213423">telnet</strong> &lt;<em id="rds_faq_0020__i483986729213423">IP address</em>&gt; {<em id="rds_faq_0020__i1672044325213423">port number</em>}</pre>
<ul id="rds_faq_0020__ufe5597923cc745229045c4b6dcf49b4a"><li id="rds_faq_0020__l2d4a85efe7f94d91a637f676ca74d7fe">If the ECS can connect to the RDS DB instance port, the network between the ECS and the RDS DB instance is normal and no further action is required.</li><li id="rds_faq_0020__ld66cf6e1c0454adbbba8bfe58736b4e7">If the ECS still cannot connect to the port, contact technical support.</li></ul>
</p></li></ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_faq_0141.html">Database Connection</a></div>
</div>
</div>