{"id":81,"date":"2006-04-20T21:30:13","date_gmt":"2006-04-21T02:30:13","guid":{"rendered":"http:\/\/www.juixe.com\/techknow\/index.php\/2006\/04\/20\/mysql-import-export\/"},"modified":"2006-04-20T21:30:13","modified_gmt":"2006-04-21T02:30:13","slug":"mysql-import-export","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2006\/04\/20\/mysql-import-export\/","title":{"rendered":"MySQL Import Export"},"content":{"rendered":"<p>I recently migrated one of our MySQL 3 databases to MySQL 5.  I needed to export data from MySQL 3 and import it to MySQL 5.  To export the data I had to do the following:<\/p>\n<pre>\nmysqldump -u username -ppassword database_name &gt; FILE.sql\n<\/pre>\n<p>FILE.sql is just a ascii file with create and insert SQL statements.  You can import this file like this:<\/p>\n<pre>\nmysql -u username -ppassword database_name &lt; FILE.sql\n<\/pre>\n<p>I read about MySQL Migration Toolkit 1.0 but I had trouble using it.  When I used the Migration Toolkit the JVM would crash and produce a hs err log file.<\/p>\n<p>Technorati Tags: <a href=\"http:\/\/technorati.com\/tag\/sql\" rel=\"tag\">sql<\/a>, <a href=\"http:\/\/technorati.com\/tag\/database\" rel=\"tag\"> database<\/a>, <a href=\"http:\/\/technorati.com\/tag\/mysql\" rel=\"tag\"> mysql<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently migrated one of our MySQL 3 databases to MySQL 5. I needed to export data from MySQL 3 and import it to MySQL 5. To export the data I had to do the following: mysqldump -u username -ppassword database_name &gt; FILE.sql FILE.sql is just a ascii file with create and insert SQL statements. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[23,3],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-1j","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/81"}],"collection":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":0,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}