<bdo id='qAq5r'></bdo><ul id='qAq5r'></ul>

    <legend id='qAq5r'><style id='qAq5r'><dir id='qAq5r'><q id='qAq5r'></q></dir></style></legend>
  • <tfoot id='qAq5r'></tfoot>

    <small id='qAq5r'></small><noframes id='qAq5r'>

      <i id='qAq5r'><tr id='qAq5r'><dt id='qAq5r'><q id='qAq5r'><span id='qAq5r'><b id='qAq5r'><form id='qAq5r'><ins id='qAq5r'></ins><ul id='qAq5r'></ul><sub id='qAq5r'></sub></form><legend id='qAq5r'></legend><bdo id='qAq5r'><pre id='qAq5r'><center id='qAq5r'></center></pre></bdo></b><th id='qAq5r'></th></span></q></dt></tr></i><div id='qAq5r'><tfoot id='qAq5r'></tfoot><dl id='qAq5r'><fieldset id='qAq5r'></fieldset></dl></div>

      1. 将 Django DB 从 SQLite 迁移到 MySQL 的最佳方法是什么?

        时间:2023-06-01
      2. <tfoot id='D7gAq'></tfoot>

            <i id='D7gAq'><tr id='D7gAq'><dt id='D7gAq'><q id='D7gAq'><span id='D7gAq'><b id='D7gAq'><form id='D7gAq'><ins id='D7gAq'></ins><ul id='D7gAq'></ul><sub id='D7gAq'></sub></form><legend id='D7gAq'></legend><bdo id='D7gAq'><pre id='D7gAq'><center id='D7gAq'></center></pre></bdo></b><th id='D7gAq'></th></span></q></dt></tr></i><div id='D7gAq'><tfoot id='D7gAq'></tfoot><dl id='D7gAq'><fieldset id='D7gAq'></fieldset></dl></div>
          • <small id='D7gAq'></small><noframes id='D7gAq'>

              <bdo id='D7gAq'></bdo><ul id='D7gAq'></ul>

                <tbody id='D7gAq'></tbody>

              • <legend id='D7gAq'><style id='D7gAq'><dir id='D7gAq'><q id='D7gAq'></q></dir></style></legend>

                1. 本文介绍了将 Django DB 从 SQLite 迁移到 MySQL 的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要将我的数据库从 sqlite 迁移到 mysql,而且各种工具/脚本太多了,我无法轻松找到最安全、最优雅的解决方案.

                  I need to migrate my db from sqlite to mysql, and the various tools/scripts out there are too many for me to easily spot the safest and most elegant solution.

                  在我看来这很好 http://djangosnippets.org/snippets/14/ 但似乎距获得令人担忧的更新已经过去了 3 年..

                  This seemed to me nice http://djangosnippets.org/snippets/14/ but appears to be 3 years since getting an update which is worrying..

                  你能推荐一个已知在 Django 1.1.1 中可靠的解决方案吗?

                  Can you recommend a solution that is known to be reliable with Django 1.1.1 ?

                  推荐答案

                  执行:

                  python manage.py dumpdata > datadump.json
                  

                  接下来,将您的 settings.py 更改为 mysql 数据库.

                  Next, change your settings.py to the mysql database.

                  最后:

                  python manage.py loaddata datadump.json
                  

                  这篇关于将 Django DB 从 SQLite 迁移到 MySQL 的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:从命令行将 mysql 数据库转储到纯文本 (CSV) 备份 下一篇:在一个巨大的 MySQL 生产表上创建一个没有表锁定的索引

                  相关文章

                  <tfoot id='NcKlS'></tfoot>
                  <legend id='NcKlS'><style id='NcKlS'><dir id='NcKlS'><q id='NcKlS'></q></dir></style></legend>

                    <i id='NcKlS'><tr id='NcKlS'><dt id='NcKlS'><q id='NcKlS'><span id='NcKlS'><b id='NcKlS'><form id='NcKlS'><ins id='NcKlS'></ins><ul id='NcKlS'></ul><sub id='NcKlS'></sub></form><legend id='NcKlS'></legend><bdo id='NcKlS'><pre id='NcKlS'><center id='NcKlS'></center></pre></bdo></b><th id='NcKlS'></th></span></q></dt></tr></i><div id='NcKlS'><tfoot id='NcKlS'></tfoot><dl id='NcKlS'><fieldset id='NcKlS'></fieldset></dl></div>
                        <bdo id='NcKlS'></bdo><ul id='NcKlS'></ul>

                      <small id='NcKlS'></small><noframes id='NcKlS'>