<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=MySQL%2Fmigration%2FCLI</id>
	<title>MySQL/migration/CLI - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=MySQL%2Fmigration%2FCLI"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=MySQL/migration/CLI&amp;action=history"/>
	<updated>2026-06-24T22:44:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=MySQL/migration/CLI&amp;diff=29346&amp;oldid=prev</id>
		<title>Woozle: Created page with &quot;{{fmt/title|MySQL migration using CLI}} ==About== There are two parts to the migration process: exporting data (generating an importable file from the source database server)...&quot;</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=MySQL/migration/CLI&amp;diff=29346&amp;oldid=prev"/>
		<updated>2026-02-25T01:44:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{fmt/title|MySQL migration using CLI}} ==About== There are two parts to the migration process: exporting data (generating an importable file from the source database server)...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{fmt/title|MySQL migration using CLI}}&lt;br /&gt;
==About==&lt;br /&gt;
There are two parts to the migration process: exporting data (generating an importable file from the source database server) and importing data (converting a file into a database on the server).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Export&amp;#039;&amp;#039;&amp;#039;: There is a utility program, [[mysqldump]], which is specifically for handling this task. (It may be possible to replicate everything it does via SQL, but there&amp;#039;s a lot of information in comments, and perhaps even pragma-code, which would be difficult to replicate precisely; I&amp;#039;m not sure if this is documented anywhere.)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[/Import/]]&amp;#039;&amp;#039;&amp;#039;: This is basically just running mysql from CLI and then piping in the entire contents of the exported &amp;lt;code&amp;gt;.sql&amp;lt;/code&amp;gt; file.&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>