You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h3>Required Options<aclass="headerlink" href="#required-options" title="Link to this heading">¶</a></h3>
45
+
<ulclass="simple">
46
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-f,</span><spanclass="pre">--sqlite-file</span><spanclass="pre">PATH</span></code>: SQLite3 database file. This option is required.</p></li>
47
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-d,</span><spanclass="pre">--mysql-database</span><spanclass="pre">TEXT</span></code>: MySQL database name. This option is required.</p></li>
48
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-u,</span><spanclass="pre">--mysql-user</span><spanclass="pre">TEXT</span></code>: MySQL user. This option is required.</p></li>
49
+
</ul>
50
+
</section>
51
+
<sectionid="password-options">
52
+
<h3>Password Options<aclass="headerlink" href="#password-options" title="Link to this heading">¶</a></h3>
53
+
<ulclass="simple">
54
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-p,</span><spanclass="pre">--prompt-mysql-password</span></code>: Prompt for MySQL password.</p></li>
55
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--mysql-password</span><spanclass="pre">TEXT</span></code>: MySQL password.</p></li>
56
+
</ul>
57
+
</section>
58
+
<sectionid="table-options">
59
+
<h3>Table Options<aclass="headerlink" href="#table-options" title="Link to this heading">¶</a></h3>
60
+
<ulclass="simple">
61
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-t,</span><spanclass="pre">--mysql-tables</span><spanclass="pre">TUPLE</span></code>: Transfer only these specific tables (space separated table names). Implies –without-foreign-keys which inhibits the transfer of foreign keys. Can not be used together with –exclude-mysql-tables.</p></li>
62
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-e,</span><spanclass="pre">--exclude-mysql-tables</span><spanclass="pre">TUPLE</span></code>: Transfer all tables except these specific tables (space separated table names). Implies –without-foreign-keys which inhibits the transfer of foreign keys. Can not be used together with –mysql-tables.</p></li>
63
+
</ul>
64
+
</section>
65
+
<sectionid="transfer-options">
66
+
<h3>Transfer Options<aclass="headerlink" href="#transfer-options" title="Link to this heading">¶</a></h3>
67
+
<ulclass="simple">
68
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-L,</span><spanclass="pre">--limit-rows</span><spanclass="pre">INTEGER</span></code>: Transfer only a limited number of rows from each table.</p></li>
69
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-C,</span><spanclass="pre">--collation</span><spanclass="pre">[BINARY|NOCASE|RTRIM]</span></code>: Create datatypes of TEXT affinity using a specified collation sequence. The default is BINARY.</p></li>
70
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-K,</span><spanclass="pre">--prefix-indices</span></code>: Prefix indices with their corresponding tables. This ensures that their names remain unique across the SQLite database.</p></li>
71
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-X,</span><spanclass="pre">--without-foreign-keys</span></code>: Do not transfer foreign keys.</p></li>
72
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-W,</span><spanclass="pre">--without-data</span></code>: Do not transfer table data, DDL only.</p></li>
73
+
</ul>
74
+
</section>
75
+
<sectionid="connection-options">
76
+
<h3>Connection Options<aclass="headerlink" href="#connection-options" title="Link to this heading">¶</a></h3>
77
+
<ulclass="simple">
78
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-h,</span><spanclass="pre">--mysql-host</span><spanclass="pre">TEXT</span></code>: MySQL host. Defaults to localhost.</p></li>
79
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-P,</span><spanclass="pre">--mysql-port</span><spanclass="pre">INTEGER</span></code>: MySQL port. Defaults to 3306.</p></li>
80
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-S,</span><spanclass="pre">--skip-ssl</span></code>: Disable MySQL connection encryption.</p></li>
81
+
</ul>
82
+
</section>
83
+
<sectionid="other-options">
84
+
<h3>Other Options<aclass="headerlink" href="#other-options" title="Link to this heading">¶</a></h3>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--json-as-text</span></code>: Transfer JSON columns as TEXT.</p></li>
89
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-V,</span><spanclass="pre">--vacuum</span></code>: Use the VACUUM command to rebuild the SQLite database file, repacking it into a minimal amount of disk space.</p></li>
90
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--use-buffered-cursors</span></code>: Use MySQLCursorBuffered for reading the MySQL database. This can be useful in situations where multiple queries, with small result sets, need to be combined or computed with each other.</p></li>
91
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">-q,</span><spanclass="pre">--quiet</span></code>: Quiet. Display only errors.</p></li>
92
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--debug</span></code>: Debug mode. Will throw exceptions.</p></li>
93
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--version</span></code>: Show the version and exit.</p></li>
94
+
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">--help</span></code>: Show this message and exit.</p></li>
95
+
</ul>
96
+
</section>
97
+
</section>
98
+
<sectionid="docker">
99
+
<h2>Docker<aclass="headerlink" href="#docker" title="Link to this heading">¶</a></h2>
100
+
<p>If you don’t want to install the tool on your system, you can use the
0 commit comments