2023. 5. 5. 08:42ㆍ데이터베이스/마리아DB
The error message "django.db.utils.NotSupportedError: MariaDB 10.4 or later is required (found 10.3.38)" indicates that your Django application is not compatible with the version of MariaDB that you are using.
The version of MariaDB that you are using is 10.3.38, which is older than the minimum required version of 10.4. To resolve this issue, you need to upgrade your MariaDB server to version 10.4 or later.
Here are the steps to upgrade MariaDB:
- Backup your databases: Before upgrading, it is important to back up all of your databases to prevent data loss in case anything goes wrong during the upgrade process.
- Check the current version: You can check the version of MariaDB that you are running by running the command mysql -u root -p -e "SELECT VERSION();". This will show you the version number of your MariaDB server.
- Add MariaDB repository: You need to add the MariaDB repository to your system to get access to the latest version of MariaDB. You can do this by running the following command:
sudo apt-get install software-properties-common
sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://mirror.netcologne.de/mariadb/repo/10.6/ubuntu focal main'
- Note that the above command is for Ubuntu 20.04 (focal) and may differ based on your operating system and version.
- Update package list: After adding the repository, you need to update the package list by running the following command:
sudo apt-get update
Upgrade MariaDB: Finally, you can upgrade MariaDB by running the following command
sudo apt-get install mariadb-server
- This will upgrade MariaDB to the latest version available in the repository.
After upgrading MariaDB, you should be able to run your Django application without any issues.
'데이터베이스 > 마리아DB' 카테고리의 다른 글
mariadb를 설치하기전 확인사항은 (0) | 2024.06.25 |
---|---|
ubuntu 20.04에서 마리아db 버젼 알아보기 (0) | 2024.06.25 |
MariaDB JSON으로 자료 처리하기 (0) | 2023.07.20 |
비밀번호변경 (0) | 2023.01.30 |
마리아DB연결-cafe24 (0) | 2023.01.12 |