forked from docs/doc-exports
das_api
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
<h1 class="topictitle1">What Is Data Admin Service?</h1>
|
||||
<div id="body1508830990967"><p id="das_01_0002__p89861225161910">Data Admin Service (DAS) is a web service that allows you to log in to and perform operations on databases.</p>
|
||||
<ul id="das_01_0002__ul17919169142017"><li id="das_01_0002__li20294631195316">DAS provides a one-stop management platform for cloud database development.</li><li id="das_01_0002__li1891916913202">DAS manages DB instances on a web console, making work easy, secure, and intelligent.</li></ul>
|
||||
<ul id="das_01_0002__ul17919169142017"><li id="das_01_0002__li20294631195316">DAS provides a one-stop management platform for cloud database development.</li><li id="das_01_0002__li1891916913202">DAS makes database management user-friendly, secure, and intelligent.</li></ul>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,12 @@
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="das_04_0042__row53272218269"><td class="cellrowborder" valign="top" width="17.630000000000003%" headers="mcps1.3.3.2.7.2.1.2.3.1.1 "><p id="das_04_0042__p3327327267">Import Type</p>
|
||||
<tbody><tr id="das_04_0042__row1552435185817"><td class="cellrowborder" valign="top" width="17.630000000000003%" headers="mcps1.3.3.2.7.2.1.2.3.1.1 "><p id="das_04_0042__p1322821395815">Database</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="82.37%" headers="mcps1.3.3.2.7.2.1.2.3.1.2 "><p id="das_04_0042__p222815138585">Select the target database to which the file is to be imported.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="das_04_0042__row53272218269"><td class="cellrowborder" valign="top" width="17.630000000000003%" headers="mcps1.3.3.2.7.2.1.2.3.1.1 "><p id="das_04_0042__p3327327267">Import Type</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="82.37%" headers="mcps1.3.3.2.7.2.1.2.3.1.2 "><p id="das_04_0042__p9327926264">Set <strong id="das_04_0042__b1580352925411">Import Type</strong> to <strong id="das_04_0042__b3271950770">sql</strong> or <strong id="das_04_0042__b1647716527710">CSV</strong>.</p>
|
||||
</td>
|
||||
@ -21,6 +26,8 @@
|
||||
<td class="cellrowborder" valign="top" width="82.37%" headers="mcps1.3.3.2.7.2.1.2.3.1.2 "><p id="das_04_0042__p6653171034320">Import a file from your local PC or an OBS bucket.</p>
|
||||
<ul id="das_04_0042__ul1966051017439"><li id="das_04_0042__li196574109430">Upload file<p id="das_04_0042__p1365715109439"><a name="das_04_0042__li196574109430"></a><a name="li196574109430"></a>If you select <strong id="das_04_0042__b489104319106">Upload file</strong> for <strong id="das_04_0042__b11307114881015">File Source</strong>, you need to set <strong id="das_04_0042__b7958103695515">Attachment Storage</strong> and upload the required file.</p>
|
||||
<p id="das_04_0042__p965761094320">To keep your data secure, provide your own OBS bucket to store the file you uploaded. In this way, DAS automatically connects to your OBS bucket for in-memory reading. No data is stored on DAS.</p>
|
||||
<p id="das_04_0042__p2305122515617">Select an OBS bucket to store the file. Click <strong id="das_04_0042__b1234625515415">Bucket ACL Info</strong> to check whether a public OBS bucket is selected.</p>
|
||||
<ul id="das_04_0042__ul322012615561"><li id="das_04_0042__li522118265563"><strong id="das_04_0042__b138507571443">SAFE</strong>: The bucket ACL permission set does not contain ALL USERS.</li><li id="das_04_0042__li222112635614"><strong id="das_04_0042__b653820011512">WARN</strong>: The bucket ACL permission set contains ALL USERS.</li><li id="das_04_0042__li10221122615613"><strong id="das_04_0042__b1441414213510">UNKNOWN</strong>: The bucket ACL permission set is unknown, maybe due to the lack of IAM permissions. You are advised to go to the OBS page to view the bucket ACL configuration.</li></ul>
|
||||
<p id="das_04_0042__p1657121017435">Creating OBS buckets is free of charge, but saving files will incur certain costs.</p>
|
||||
<p id="das_04_0042__p86574105431">If you select <strong id="das_04_0042__b847113198170">Delete the uploaded file upon an import success</strong>, the file you uploaded will be automatically deleted from the OBS bucket after being imported to the destination database.</p>
|
||||
</li><li id="das_04_0042__li5660131034310">Choose from OBS<p id="das_04_0042__p20660111064310"><a name="das_04_0042__li5660131034310"></a><a name="li5660131034310"></a>If you select <strong id="das_04_0042__b03888159202">Choose from OBS</strong> for <strong id="das_04_0042__b3437020112015">File Source</strong>, you need to select a file from the bucket.</p>
|
||||
@ -28,17 +35,6 @@
|
||||
</li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="das_04_0042__row131662591385"><td class="cellrowborder" valign="top" width="17.630000000000003%" headers="mcps1.3.3.2.7.2.1.2.3.1.1 "><p id="das_04_0042__p17166165911389">Attachment Storage</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="82.37%" headers="mcps1.3.3.2.7.2.1.2.3.1.2 "><p id="das_04_0042__p202471456164716">Select an OBS bucket to store the file. Click <strong id="das_04_0042__b096316541912">Bucket ACL Info</strong> to check whether a public OBS bucket is selected.</p>
|
||||
<ul id="das_04_0042__ul6314446164711"><li id="das_04_0042__li10314346104712"><strong id="das_04_0042__b5384112018112">SAFE</strong>: The bucket ACL permission set does not contain ALL USERS.</li><li id="das_04_0042__li10314046164711"><strong id="das_04_0042__b20101155114111">WARN</strong>: The bucket ACL permission set contains ALL USERS.</li><li id="das_04_0042__li17314746144716"><strong id="das_04_0042__b157725951110">UNKNOWN</strong>: The bucket ACL permission set is unknown, maybe due to the lack of IAM permissions. You are advised to go to the OBS page to view the bucket ACL configuration.</li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="das_04_0042__row93270292612"><td class="cellrowborder" valign="top" width="17.630000000000003%" headers="mcps1.3.3.2.7.2.1.2.3.1.1 "><p id="das_04_0042__p1532718272611">Database</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="82.37%" headers="mcps1.3.3.2.7.2.1.2.3.1.2 "><p id="das_04_0042__p53276211261">Select the database that you want to import the file to.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="das_04_0042__row12327182122615"><td class="cellrowborder" valign="top" width="17.630000000000003%" headers="mcps1.3.3.2.7.2.1.2.3.1.1 "><p id="das_04_0042__p132710212267">Charset</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="82.37%" headers="mcps1.3.3.2.7.2.1.2.3.1.2 "><p id="das_04_0042__p1532715214265">Select a charset as needed.</p>
|
||||
|
||||
@ -4,7 +4,12 @@
|
||||
<div id="body0000001101785316"><ol id="das_10_0014__ol4734mcpsimp"><li id="das_10_0014__li4735mcpsimp">Error message: <strong id="das_10_0014__b51211148191715">Access denied for user 'user_name'@'100.xxx.xx.xx' (using password: YES)</strong><ol type="a" id="das_10_0014__ol1075810321463"><li id="das_10_0014__li179241923761">Error cause: The username or password of the RDS instance is incorrect.<div class="p" id="das_10_0014__p191506117324"><a name="das_10_0014__li179241923761"></a><a name="li179241923761"></a>Solution: Check whether the username and password are correct. If you are not sure, log in to the RDS console to reset the password.<div class="notice" id="das_10_0014__note4739mcpsimp"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="das_10_0014__p1093815513611">Changing the password may affect services.</p>
|
||||
</div></div>
|
||||
</div>
|
||||
<p id="das_10_0014__p415091133220">If the username and password are correct, log in to the database using a client or CLI and run <strong id="das_10_0014__b1510244516577">select * from mysql.user where user = 'user_name'</strong> to view the account. If <strong id="das_10_0014__b9240175795311">100.</strong><em id="das_10_0014__i2986205918532">xxx</em><strong id="das_10_0014__b7472314546">.</strong><em id="das_10_0014__i45443513543">xxx</em><strong id="das_10_0014__b724113725410">.</strong><em id="das_10_0014__i1321791025412">xxx</em> is assigned to a user, only the user can connect to the database through DAS. <strong id="das_10_0014__b1111452102310">user_name @%</strong> and <strong id="das_10_0014__b141115213237">user_name @100.%</strong> are different users with independent passwords and permissions. Enter the password of <strong id="das_10_0014__b512152192318">user_name @100.%</strong>.</p>
|
||||
<p id="das_10_0014__p3424mcpsimp">MySQL account names consist of a user name and a host name, which enables creation of distinct accounts for users with the same user name who connect from different hosts.</p>
|
||||
<p id="das_10_0014__p3426mcpsimp"><strong id="das_10_0014__b85621512123517">100.%</strong> indicates an IP address starting with <strong id="das_10_0014__b0700124910293">100</strong> assigned to a server where DAS is installed.</p>
|
||||
<p id="das_10_0014__p3429mcpsimp">To log in to the database on DAS as a non-<strong id="das_10_0014__b4486126171513">root</strong> user, make sure <strong id="das_10_0014__b145634122357">100.%</strong> is assigned to the user's host.</p>
|
||||
<p id="das_10_0014__p3432mcpsimp">If the username and password are correct, log in to the database using a client or CLI as the <strong id="das_10_0014__b1585710409141">root</strong> user. Then run <strong id="das_10_0014__b1156391263515">select * from mysql.user where user = 'user_name' </strong>to view the account.</p>
|
||||
<p id="das_10_0014__p3435mcpsimp"><strong id="das_10_0014__b3437mcpsimp">user_name @%</strong> and <strong id="das_10_0014__b256316125350">user_name @100.%</strong> are different users with independent passwords and permissions even they have the same <strong id="das_10_0014__b35637128356">user_name</strong>. If you have both the accounts, enter the password of <strong id="das_10_0014__b1398413301312">user_name @100.%</strong> to log in to your database on DAS.</p>
|
||||
<div class="fignone" id="das_10_0014__fig64881254183814"><span class="figcap"><b>Figure 1 </b>User management</span><br><span><img id="das_10_0014__image312" src="en-us_image_0000002369231434.png"></span></div>
|
||||
</li><li id="das_10_0014__li7572182510810">Error cause: The IP address of the DAS server is not in the whitelist of the login user.<div class="p" id="das_10_0014__p18713172253217"><a name="das_10_0014__li7572182510810"></a><a name="li7572182510810"></a>Solution: Log in to the database using the client or CLI, and create a user that can be used to access the database through DAS.<pre class="screen" id="das_10_0014__screen187416560104">create user 'user_name'@'100.%' identified by 'password';
|
||||
grant select on *.* to 'user_name'@'100.%';</pre>
|
||||
<div class="note" id="das_10_0014__note38881154142611"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="das_10_0014__ul1286419132718"><li id="das_10_0014__li11604822192712">Ensure that the IP address of the DAS server is in a CIDR block starting with 100. Add the IP address to the whitelist of the login user.</li><li id="das_10_0014__li3861619132712">Grant permissions to user <strong id="das_10_0014__b153731052494">user_name@100.%</strong> based on service requirements.</li></ul>
|
||||
@ -14,7 +19,7 @@ grant select on *.* to 'user_name'@'100.%';</pre>
|
||||
<pre class="screen" id="das_10_0014__screen963061461118">select user, host, ssl_type from mysql.user where user = 'user_name';</pre>
|
||||
</li></ol>
|
||||
</li><li id="das_10_0014__li11797133942911">Error message: <strong id="das_10_0014__b12801916563">Trying to connect with ssl, but ssl not enabled in the server</strong><p id="das_10_0014__p165912119314">Error cause: The SSL function is not enabled on the server.</p>
|
||||
<div class="p" id="das_10_0014__p5591111143110">Solution: Run the following statement to check whether the user is an SSL user. If yes, enable SSL on the RDS instance details page. The user is an SSL user if the <strong id="das_10_0014__b618919309">ssl_type</strong> field has a value.<pre class="screen" id="das_10_0014__screen3536162510817">select user, host, ssl_type from mysql.user where user = 'user_name';</pre>
|
||||
<div class="p" id="das_10_0014__p5591111143110">Solution: Run the following statement to check whether the user is an SSL user. If yes, enable SSL on the RDS instance details page. The user is an SSL user if the <strong id="das_10_0014__b514121310">ssl_type</strong> field has a value.<pre class="screen" id="das_10_0014__screen3536162510817">select user, host, ssl_type from mysql.user where user = 'user_name';</pre>
|
||||
</div>
|
||||
</li><li id="das_10_0014__li1679733922911">Error message: <strong id="das_10_0014__b15859115394020">Client does not support authentication protocol requested by server.</strong> plugin type was = 'sha256_password'.<ol type="a" id="das_10_0014__ol2296540101513"><li id="das_10_0014__li929644021520">Error cause: DAS does not allow you to connect to the database whose password is encrypted with SHA-256.<div class="p" id="das_10_0014__p1318682493113"><a name="das_10_0014__li929644021520"></a><a name="li929644021520"></a>Solution: Execute the following SQL statements to change the password encryption method to mysql_native_password.<pre class="screen" id="das_10_0014__screen145911817185">alter user 'user_name'@'%' identified with mysql_native_password by 'password';</pre>
|
||||
</div>
|
||||
|
||||
BIN
docs/das/umn/en-us_image_0000002369231434.png
Normal file
BIN
docs/das/umn/en-us_image_0000002369231434.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
Reference in New Issue
Block a user