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

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 toMariaDB download pageand download the zip file of the latest stable version
  • Extract the file and rename the folder frommariadb-10.x.xtomysql
  • Then go to thexamppdirectory in theC:drive and change the mysql folder name tomysql_old
  • Then copy the unzipped folder to thexamppdirectory.
  • Then enter themysql_olddirectory and copy thebackupsfolder,scriptsfolder,mysqlinstallservicefile,mysqluninstallservicefile and paste it into themysqlfolder.
  • Then go to thebinfolder inmysql_oldand copy themyfile to thebinfile inmysql Folderfolder.
  • Then edit themyfile in mysql, addskip-grant-tablesbefore#skip-federated, and delete this line innodb_additional_mem_pool_size = 2M, then save the file.
  • Then openmysql_upgradein thebinfolder and run it.
  • After successful operation, rename thedatafolder in themysqlfolder todata_new, and then change the file name from thedatafolder Copy thedatafolder in code>mysql_old folder to themysqlfolder.
  • Now run thexamppcontrol panel and start theapacheserver andmysql.

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

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!