doc-exports/docs/rds/umn/rds_faq_0027.html
Ru, Li Yi f51ec873f3 rds_umn
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>
2024-06-05 10:42:11 +00:00

26 lines
4.4 KiB
HTML

<a name="rds_faq_0027"></a><a name="rds_faq_0027"></a>
<h1 class="topictitle1">How Can I Install the MySQL Client?</h1>
<div id="body8662426"><p id="rds_faq_0027__en-us_topic_0086556931_p716997816195">MySQL provides client installation packages for different OSs on its official website. MySQL 5.6 is used as an example. Download the <a href="http://dev.mysql.com/downloads/mysql/5.6.html#downloads" target="_blank" rel="noopener noreferrer">MySQL 5.6 client installation package</a> or <a href="http://downloads.mysql.com/archives/community/" target="_blank" rel="noopener noreferrer">other versions of the packages</a>. The following procedure illustrates how to obtain the required installation package and install the MySQL client into a Red Hat Linux system.</p>
<div class="section" id="rds_faq_0027__s161bbd959f38465787089af10a2d0190"><h4 class="sectiontitle">Procedure</h4><ol id="rds_faq_0027__o6f71a46026484d63b50bb97e180806b5"><li id="rds_faq_0027__l5c3d02e540744ccea4ca3c756d6e11c4"><span>Obtain the installation package.</span><p><p id="rds_faq_0027__en-us_topic_0086556931_p75317410124">Find the <a href="http://dev.mysql.com/downloads/file/?id=463159" target="_blank" rel="noopener noreferrer">link</a> to the required version on the download page. MySQL-client-5.6.31-1.el6.x86_64.rpm is used as an example in the following figure.</p>
<div class="fignone" id="rds_faq_0027__f40223ae411b74068bbe28b35e2c4ba3e"><span class="figcap"><b>Figure 1 </b>Procedure</span><br><span><img id="rds_faq_0027__i8e1cbc15392d42a1bf3c5e5fbca460ae" src="en-us_image_0000001191131295.png"></span></div>
<div class="p" id="rds_faq_0027__a8754cc5b2c7246bdba81835c3f2ea8ac"><div class="note" id="rds_faq_0027__ne7dcd0ab5f45481f854b45806692c6c1"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="rds_faq_0027__a25cf5f0efe694b0b81697bee746d91f8">Click <a href="http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.31-1.el6.x86_64.rpm" target="_blank" rel="noopener noreferrer">URL</a> to download the installation package.</p>
</div></div>
</div>
</p></li><li id="rds_faq_0027__l5dd7d545a3b945cda87ab7a449b8f276"><span>Upload the installation package to the <span id="rds_faq_0027__text1538316415553">ECS</span>.</span><p><ol type="a" id="rds_faq_0027__ol16167145216453"><li id="rds_faq_0027__li41670526455">When you create an <span id="rds_faq_0027__text11366744134511">ECS</span>, select an OS, such as Red Hat 6.6, and bind an <span id="rds_faq_0027__text113661144174512">EIP</span> to it.</li><li id="rds_faq_0027__li151674526458">Use a remote connection tool to connect to the <span id="rds_faq_0027__text193242293592">ECS</span> through the bound EIP and upload the installation package to the <span id="rds_faq_0027__text14717103255919">ECS</span>.</li></ol>
</p></li><li id="rds_faq_0027__lca1eae7b44f04855879df320f7d6244b"><span>Run the following command to install the MySQL client:</span><p><pre class="screen" id="rds_faq_0027__s5f0ba99008494c539821572851dda4a1">Sudo rpm -ivh <em id="rds_faq_0027__a8a1e46c744ed4ceeb01ad5e88e5a8234">MySQL-client-5.6.31-1.el6.x86_64.rpm</em></pre>
<div class="note" id="rds_faq_0027__nb5da47cf0e8c4265b1c8384b4f6e7861"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="rds_faq_0027__u74c03c4abb3846b7910a4b10c459c5d4"><li id="rds_faq_0027__la16b9762a2b54a7585d8f740148623fb">If there are any conflicts during the installation, add the <strong id="rds_faq_0027__b842352706201058">replacefiles</strong> parameter to the command and try to install the client again. Example:<pre class="screen" id="rds_faq_0027__s886ff95026d84326827784b9b2a0126c">rpm -ivh --replacefiles MySQL-client-5.6.31-1.el6.x86_64.rpm</pre>
</li></ul>
<ul id="rds_faq_0027__u417f206da8f14a04a0d268e6954822bf"><li id="rds_faq_0027__l660a7375b04e48fba9a34d8a5048d0bb">If a message is displayed prompting you to install a dependency package, you can add the <strong id="rds_faq_0027__b654556377">nodeps</strong> parameter to the command and install the client again. Example:<pre class="screen" id="rds_faq_0027__s9341f2ff0b94421bb006c17d7561b44f">rpm -ivh --nodeps MySQL-client-5.6.31-1.el6.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>