doc-exports/docs/dws/tool/dws_16_0028.html
Lu, Huayi 27019c2991 DWS TOOL 830.201 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:35:25 +00:00

58 lines
5.3 KiB
HTML

<a name="EN-US_TOPIC_0000001819416105"></a><a name="EN-US_TOPIC_0000001819416105"></a>
<h1 class="topictitle1">MySQL SQL Migration</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_p65311848141014">DSC supports the migration from MySQL to GaussDB(DWS), including the migration of schemas, DML, queries, system functions, and PL/SQL.</p>
<div class="section" id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_section158342208320"><h4 class="sectiontitle">Performing MySQL Migration on Linux</h4><p id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_p67111324154310">Run the following command on Linux to start the migration. You need to specify the source database, input and output folder paths, and log paths. The application language is SQL.</p>
<pre class="screen" id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_screen18944141010262">./runDSC.sh
--source-db MySQL
[--input-folder &lt;input-script-path&gt;]
[--output-folder &lt;output-script-path&gt;]
[--application-lang SQL]
[--conversion-type &lt;conversion-type&gt;]
[--log-folder &lt;log-path&gt;]</pre>
<p id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_p1967154715">During the execution of DSC, the migration summary, including the progress and completion status, is displayed on the console.</p>
<pre class="screen" id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_screen47562386">./runDSC.sh --source-db MySQL --input-folder /opt/DSC/DSC/input/mysql/ --output-folder /opt/DSC/DSC/output/ --application-lang SQL --conversion-type BULK --log-folder/opt/DSC/DSC/log/</pre>
<pre class="screen" id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_screen109612151476">********************** Schema Conversion Started *************************
DSC process start time : Mon Jan 20 17:24:49 IST 2020
Statement count progress 100% completed [FILE(1/1)]
Schema Conversion Progress 100% completed
**************************************************************************
Total number of files in input folder : 1
Total number of valid files in input folder : 1
**************************************************************************
Log file path :....../DSC/DSC/log/dsc.log
Error Log file :
DSC process end time : Mon Jan 20 17:24:49 IST 2020
DSC total process time : 0 seconds
********************* Schema Conversion Completed ************************</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_section18781165519813"><h4 class="sectiontitle">Performing MySQL Migration on Windows</h4><p id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_p14835912293">Run the following command on Windows to start the migration. You need to specify the source database, input and output folder paths, and log paths. The application language can be SQL or Perl. The default language is SQL. The migration type can be <strong id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_b169247376931557">Bulk</strong> or <strong id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_b53506576031557">BLogic</strong>.</p>
<pre class="screen" id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_screen2210401466">runDSC.bat
--source-db MySQL
[--input-folder &lt;input-script-path&gt;]
[--output-folder &lt;output-script-path&gt;]
[--application-lang SQL]
[--conversion-type &lt;conversion-type&gt;]
[--log-folder &lt;log-path&gt;]</pre>
<p id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_p16933172917575">During the execution of DSC, the migration summary, including the progress and completion status, is displayed on the console.</p>
<pre class="screen" id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_screen1593715322417">runDSC.bat --source-db MySQL --target-db GaussDBA --input-folder D:\test\conversion\input --output-folder D:\test\conversion\output --log-folder D:\test\conversion\log --application-lang SQL --conversion-type BULK</pre>
<pre class="screen" id="EN-US_TOPIC_0000001819416105__en-us_topic_0000001706224053_en-us_topic_0000001438238877_screen35931333135710">********************** Schema Conversion Started *************************
DSC process start time : Mon Jan 20 17:24:49 IST 2020
Statement count progress 100% completed [FILE(1/1)]
Schema Conversion Progress 100% completed
**************************************************************************
Total number of files in input folder : 1
**************************************************************************
Log file path :....../DSC/DSC/log/dsc.log
DSC process end time : Mon Jan 20 17:24:49 IST 2020
DSC total process time : 0 seconds
********************* Schema Conversion Completed ************************</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0024.html">Database Schema Conversion</a></div>
</div>
</div>