6👍
use
DATABASES = {
'default': { 'NAME': 'test', 'ENGINE': 'django.db.backends.mysql', 'USER': 'redacted', 'PASSWORD': 'redacted', 'HOST': 'localhost' 'OPTIONS': { "init_command": "SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"}
},
}
ie without “storage_engine=INNODB,”. The latest versions of MySql engine by default INNODB.
0👍
- Check your mysql version by running
sudo mysqld --version
- In mysql version 5.7.11, the storage engine system variable is:
default-storege-engine
therefore, yourOPTIONS
settings should be:
{
'OPTIONS': { "init_command": "SET default_storage_engine=INNODB"}
}
- To find the name of the storage engine variable on your system, run this command
sudo mysqld --verbose --help | grep storage
- [Django]-MemoryError with django
- [Django]-Django all-auth Email Required
- [Django]-Django: Using DataTables
Source:stackexchange.com