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

Поділитися
Вставка
  • Опубліковано 13 гру 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.

  • @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.mp4
      @hinoki.mp4 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.mp4 unfortunately not, had to dump fake data afterward with a faker command

  • @syedm.ibrahimalishahgillan6302

    venv is not working:(