Resolving django.db.utils.NotSupportedError error in Django
P粉939473759
P粉939473759 2023-11-14 11:59:20
0
1
1356

I'm getting an error when running my project in Django. The problem is that unfortunately I upgraded my pip, MySQL client and Django versions

This is an error when running python manage.py run server

in check_database_version_supported
raise NotSupportedError(
django.db.utils.NotSupportedError: MariaDB 10.3 or later is required (found 10.1.19).


P粉939473759
P粉939473759

reply all(1)
P粉662089521

You installed the MariaDB-10.1.19 client on your MySQL server, and your application discovered that 10.1.19. As indicated in the error, you need to have MariaDB 10.3 or higher. You can upgrade MariaDB to

  • First stop the xampp server completely.
  • Then go to MariaDB download page and download the zip file of the latest stable version
  • Extract the file and rename the folder from mariadb-10.x.x to mysql
  • Then go to the xampp directory in the C: drive and change the mysql folder name to mysql_old
  • Then copy the unzipped folder to the xampp directory.
  • Then enter the mysql_old directory and copy the backups folder, scripts folder, mysqlinstallservice file, mysqluninstallservice file and paste it into the mysql folder.
  • Then go to the bin folder in mysql_old and copy the my file to the bin file in mysql Folder folder.
  • Then edit the my file in mysql, add skip-grant-tables before #skip-federated, and delete this line innodb_additional_mem_pool_size = 2M, then save the file.
  • Then open mysql_upgrade in the bin folder and run it.
  • After successful operation, rename the data folder in the mysql folder to data_new, and then change the file name from the data folder Copy the data folder in code>mysql_old folder to the mysql folder.
  • Now run the xampp control panel and start the apache server and mysql.

Now that MariaDB has been updated, the issue will be resolved.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template