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粉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
mariadb-10.x.x
to mysql
xampp
directory in the C:
drive and change the mysql folder name to mysql_old
xampp
directory. mysql_old
directory and copy the backups
folder, scripts
folder, mysqlinstallservice
file, mysqluninstallservice
file and paste it into the mysql
folder. bin
folder in mysql_old
and copy the my
file to the bin file in
mysql Folder
folder. 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. mysql_upgrade
in the bin
folder and run it. 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. xampp
control panel and start the apache
server and mysql
. Now that MariaDB has been updated, the issue will be resolved.