Giter VIP home page Giter VIP logo

mysql2redis's Introduction

本目录下的脚本实现了把数据库中和类CBBEmployee,CBBFinancialLog,CBBFurniture,CBBInventoryObj,CBBLocation,CBBPlayer,CBBPlayerToy,CBBStore,CBBWarehouse相关的数据从Mysql==>Redis的迁移,
一下以对CBBPlayer类的迁移来说明如何实现数据的迁移:
1)在命令行窗口cd到本目录
2)在shell这输入一下命令
python Player.py

3)监视Redis的更改,并做相关处理的文件为RedisMonitor.py,目前对其中的当监视到Redis更改之后的处理部分为着处理,只是答应出了相应的语句。

注意:
1)运行脚本,需要的机器装有mysql命令行客户端,redis命令行客户端,redis 服务器
目前版本是把数据存到了本地的redis服务器中,在迁移之前需要打开redis服务
2) 程序没有完全测试,原因如下:(1)在测试数据库(ip以110结尾)中数据不全,无法完成测试,(2)某些SQL语句不正确,可能需要BOB协助,(3)可能需要对类的字段做补充

完整测试过的类有Player.py
作者:
郭旭聪:Employee.py FinancialLog.py PlayerToy.py Store.py
张金国:其他文件


mysql2redis's People

Contributors

zhangjg avatar

Stargazers

 avatar

Watchers

tony wang avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.