#4 Change Database in Django sqllite to MySQL || How to migrate sqllite to MySQL in Django ||

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 9

  • @notalkcodeing3726
    @notalkcodeing3726  2 года назад +5

    default': {
    'ENGINE': 'django.db.backends.mysql',
    'NAME': 'DB_NAME',
    'USER': 'DB_USER',
    'PASSWORD': 'DB_PASSWORD',
    'HOST': 'localhost', # Or an IP Address that your DB is hosted on
    'PORT': '3306',
    }
    2:-pip install mysqlclient

  • @ZakuroBanana
    @ZakuroBanana Год назад +1

    Good simple tutorial. Thank you.

    • @notalkcodeing3726
      @notalkcodeing3726  Год назад

      Welcome bro more to come in future..keep supporting 😇

  • @mista_ia
    @mista_ia Год назад +3

    I have to update a project that has been done with sqlite (using connect, execute, cursor commands) and it is time to get it on PROD but with MySQL. I thought I could see how to migrate codes and database from sqlite to mysql server on this video.

    • @notalkcodeing3726
      @notalkcodeing3726  Год назад

      The video is for change the database to SQL lite to MYSQL only

    • @hinoki.mp4173
      @hinoki.mp4173 3 месяца назад +1

      Hello, I'm in the same situation, have you found a way to migrate sqllite to mysql keeping its content? I would like to migrate to mysql but with the method shown you simply change the database, losing everything inside.
      thanks

    • @mista_ia
      @mista_ia 3 месяца назад

      @@hinoki.mp4173 unfortunately not, had to dump fake data afterward with a faker command

  • @syedm.ibrahimalishahgillan6302
    @syedm.ibrahimalishahgillan6302 Год назад +1

    venv is not working:(