[Answered ]-How can I switch my Django project's database engine from Sqlite to MySQL?

3👍

According to the Database setup paragraph in Django docs:

By default, the configuration uses SQLite.

If you wish to use another database, install the appropriate database
bindings

And Get your database running page says:

If you’re using MySQL, you’ll need the MySQL-python package, version
1.2.1p2 or higher.

To use MySQL backend you need a tool that would help Django talk to the database, an adapter.

In other words, MySQL-python (aka MySQLdb) package needs to be installed.

👤alecxe

-1👍

Try the followings steps:
1. Change DATABASES in settings.py to MYSQL engine
2. Run $ ./manage.py syncdb

👤karol

Leave a comment