Redis synchronizes online data to the local by copying RDB files and prompts: Can’t handle RDB format version 9 solution

Scenes

Redis persistence mechanism-RDB method and AOF method:

Redis persistence mechanism-RDB method and AOF method_rdb and ao-CSDN blog

The Redis persistence mechanism causes the service to take too long to restore data after it is started and cannot be used. How to shut down:

The Redis persistence mechanism causes the service to take too long to restore data after it is started and cannot be used, and how to shut it down_The Blog of Overbearing Rogue Temperament-CSDN Blog

The above is an introduction to redis persistent rdb.

If you need to obtain all the data in online redis and use it locally for debugging, you can download the rdb file of online redis locally and run it locally.

Using the same configuration file and redis version, you can obtain the same data online after startup.

Note:

Blog:
Domineering hooligan temperament_C#, architecture road, SpringBoot-CSDN blog

accomplish

However, when reproducing the data locally according to the above process, it prompts when starting redis-server.

Can't handle RDB format version 9

Fatal error loading the DB:Invalid argument.Exiting

This is because the online redis version is 5.0 and the local redis is 3.2, so you can download the same version of redis locally.

Download redis5.0 address on windows

Releases · tporadowski/redis · GitHub

Download the zip and unzip it, then copy the rdb file in

Guess you like

Origin blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/134163995