Code Monkey home page Code Monkey logo

micromdm_bolt2mysql's Introduction

MicroMDM_Bolt2MySQL - a tool to migrate MicroMDM bolt database to MySQL

MicroMDM_Bolt2MySQL is a tool to migrate Mobile Device Management server Bolt database to MySQL.

This tool partly resuse MicroMDM sources with MySQL support to extract data from Bolt Database and save to MySQL.

Run MicroMDM_Bolt2MySQL

This tool can run using docker-compose command.

First copy your micromdm.db file to bolt_database directory

Start your MySQL server. (Note, If you have no MySQL server you can clone https://github.com/SixK/micromdm and follow "Test MicroMDM with Mysql" steps)

Modify the following line in micromdm_bolt2mysql.go to let it connect to your MySQL server :

mydb, err = sqlx.Connect("mysql", "micromdm:micromdm@(localhost:3306)/micromdm")

Run docker-compose

docker-compose up

Notes

This tool is actually in Beta test and not fully tested.
Use it at your own risk !!!

Don't forget to copy your certificates from your MicroMDM server to your new MicroMDM server with MySQL Support

All elements from BoltDB are not yet extracted, but extracted keys should be sufficient to let MicroMDM with MySQL support work for most use cases.

If not running in docker container with docker-compose, sources from https://github.com/SixK/micromdm will be necessary.

https://github.com/SixK/micromdm is a modified fork from https://github.com/Lepidopteron/micromdm
https://github.com/Lepidopteron/micromdm is a fork that add MySQL support to official MicroMDM projet https://github.com/micromdm/micromdm

If you have the following error then you probably not copied your micromdm.db file to bolt_database directory :

micromdm_bolt2mysql_1 | 2020/12/11 16:37:50 Bucket "mdm.Devices" not found! micromdm_boltdb2mysql_micromdm_bolt2mysql_1 exited with code 1

micromdm_bolt2mysql's People

Contributors

sixk avatar

Watchers

 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.