search

Home  >  Q&A  >  body text

Resolving django.db.utils.NotSupportedError error in Django

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粉939473759P粉939473759377 days ago1366

reply all(1)I'll reply

  • P粉662089521

    P粉6620895212023-11-15 10:26:58

    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 < code>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.

    reply
    0
  • Cancelreply