forked from docs/doc-exports
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>
27 lines
5.1 KiB
HTML
27 lines
5.1 KiB
HTML
<a name="rds_faq_0029"></a><a name="rds_faq_0029"></a>
|
|
|
|
<h1 class="topictitle1">How Can I Install the PostgreSQL Client?</h1>
|
|
<div id="body8662426"><p id="rds_faq_0029__p2060218352516">PostgreSQL provides <a href="https://yum.postgresql.org/" target="_blank" rel="noopener noreferrer">client installation packages</a> and the required dynamic shared library packages for different OSs on its official website.</p>
|
|
<div class="notice" id="rds_faq_0029__note4933759525"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="rds_faq_0029__p493415513522">Ensure that the database client matches the DB engine version of your RDS PostgreSQL DB instances.</p>
|
|
</div></div>
|
|
<p id="rds_faq_0029__a9924b67624fd4bf0a8c477afbb4a787d">This following uses <a href="https://yum.postgresql.org/9.5/redhat/rhel-6-x86_64/repoview/postgresqldbserver95.group.html" target="_blank" rel="noopener noreferrer">PostgreSQL 9.5</a> in Red Hat Linux 6 as an example to describe how to obtain the required installation package and complete the installation.</p>
|
|
<div class="section" id="rds_faq_0029__s7f42b10588bf490a89a0971f46cad43f"><h4 class="sectiontitle">Procedure</h4><ol id="rds_faq_0029__ofd5b72660bb7486691e451318712a566"><li id="rds_faq_0029__l0502267b6d88490a98451ddf0b3d49ed"><span>Obtain the PostgreSQL client installation package.</span><p><p id="rds_faq_0029__a4cab6ecfd0cd4bdc97244cf04983ea1a">Find the <a href="https://yum.postgresql.org/9.5/redhat/rhel-6-x86_64/repoview/postgresql95.html" target="_blank" rel="noopener noreferrer">link</a> to the required version on the download page. postgresql95 is used as an example in the following figure.</p>
|
|
<div class="fignone" id="rds_faq_0029__f249a2b1150ba4c008cc9b389cb16b05d"><span class="figcap"><b>Figure 1 </b>Downloading the PostgreSQL client installation package</span><br><span><img id="rds_faq_0029__if50972568a8048659186414cc603a224" src="en-us_image_0000001419863866.png"></span></div>
|
|
</p></li><li id="rds_faq_0029__l0a0d00b5459746b5a424da01711ef380"><span>Obtain the dynamic shared library package required for the PostgreSQL client.</span><p><p id="rds_faq_0029__a9052924cbf5642a685206a4d22322529">Find the <a href="https://yum.postgresql.org/9.5/redhat/rhel-6-x86_64/repoview/postgresql95-libs.html" target="_blank" rel="noopener noreferrer">link</a> to the required version on the download page. postgresql95-libs is used as an example in the following figure.</p>
|
|
<div class="fignone" id="rds_faq_0029__fdef8c43a1fed4c118275430df63a90d4"><span class="figcap"><b>Figure 2 </b>Downloading the dynamic shared library package</span><br><span><img id="rds_faq_0029__i956bb675de89477c8828a3c9db4201b8" src="en-us_image_0000001420023818.png"></span></div>
|
|
</p></li><li id="rds_faq_0029__l0b58119df95e479e96c8c2e10edf2c4e"><span>Upload the installation and dynamic shared library packages to the <span id="rds_faq_0029__text1538316415553">ECS</span>.</span><p><ol type="a" id="rds_faq_0029__ol16167145216453"><li id="rds_faq_0029__li41670526455">When you create an <span id="rds_faq_0029__text1852317138337">ECS</span>, select an OS, such as Red Hat 6.6, and bind an <span id="rds_faq_0029__text14524161312335">EIP</span> to it.</li><li id="rds_faq_0029__li151674526458">Use a remote connection tool to connect to the <span id="rds_faq_0029__text17931822203315">ECS</span> through the bound EIP and upload the installation package and dynamic dependency package to the <span id="rds_faq_0029__text19936722203318">ECS</span>.</li></ol>
|
|
</p></li><li id="rds_faq_0029__l4db8a0be9b494316b4acd229cecc23c9"><span>Run the following command to install the PostgreSQL client:</span><p><pre class="screen" id="rds_faq_0029__sefc0f386a8f248dc9b07b4ddb4e992c7">sudo rpm -ivh postgresql95-9.5.7-1PGDG.rhel6.x86_64.rpm postgresql95-libs-9.5.7-1PGDG.rhel6.x86_64.rpm</pre>
|
|
<div class="note" id="rds_faq_0029__nd49ac8f9df424f3d84ed61ca8609ea46"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="rds_faq_0029__u06afbb16b2854ec5be130b5a176eed23"><li id="rds_faq_0029__lee01f7dac0f642be827d0bf332d70ded">If there are any conflicts during the installation, add the <strong id="rds_faq_0029__b31991514173419">replacefiles</strong> parameter to the command and try to install the client again. Example:<pre class="screen" id="rds_faq_0029__sc51d5ed252e140f0ab410fb1ce1146db">rpm -ivh --replacefiles postgresql95-9.5.7-1PGDG.rhel6.x86_64.rpm postgresql95-libs-9.5.7-1PGDG.rhel6.x86_64.rpm</pre>
|
|
</li><li id="rds_faq_0029__l24c8614f02ba465f9d9899c220277976">If a message is displayed prompting you to install a dependency package, you can add the <strong id="rds_faq_0029__b182682346342">nodeps</strong> parameter to the command and install the client again. Example:<pre class="screen" id="rds_faq_0029__s79803088e2cd466da904bf2db829571a">rpm -ivh --nodeps postgresql95-9.5.7-1PGDG.rhel6.x86_64.rpm postgresql95-libs-9.5.7-1PGDG.rhel6.x86_64.rpm</pre>
|
|
</li></ul>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_faq_0152.html">Client Installation</a></div>
|
|
</div>
|
|
</div>
|
|
|