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
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.
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
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
Good simple tutorial. Thank you.
Welcome bro more to come in future..keep supporting 😇
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.
The video is for change the database to SQL lite to MYSQL only
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
@@hinoki.mp4173 unfortunately not, had to dump fake data afterward with a faker command
venv is not working:(
What's the error?? tell me .. I am happy to help you