Coder Social home page Coder Social logo

faktor-mysql's Introduction

faktor-mysql

Build Status GitHub release (latest by date) MIT Licence GitHub code size

伪装mysql服务, 用于在开发/测试阶段本机使用, 轻量化本机环境.

项目名: fake viktor

Viktor(维克托): <Arcane: League of Legends>(<英雄联盟:双城之战>)中的角色, 未来的The Machine Herald(机械先驱).

获取可执行文件

  1. 下载最新的可执行文件压缩包并解压

    下载地址: faktor-mysql releases

    Mac系统如无法执行bin文件, 请在 系统偏好设置 -> 安全性与隐私 中允许程序运行

$ tar -xvJf faktor-[version].[arch].[os].tar.xz
  1. git clone到本地, 编译打包

    获取打包后的二进制文件faktor.bin

$ ./build.sh

查看帮助

$ ./faktor.bin --help
########    ###    ##    ## ########  #######  ########
##         ## ##   ##   ##     ##    ##     ## ##     ##
##        ##   ##  ##  ##      ##    ##     ## ##     ##
######   ##     ## #####       ##    ##     ## ########
##       ######### ##  ##      ##    ##     ## ##   ##
##       ##     ## ##   ##     ##    ##     ## ##    ##
##       ##     ## ##    ##    ##     #######  ##     ##

fake mysql server

Usage:
  faktor [flags]

Commands:
  load, create  load a schema [ with init sql script ]
  unload, drop  unload a schema
  help          use 'help [command]' for command help

Flags:
  -p, --port     int       mysql server port (default: 9900)
  -u, --username string    mysql user name (default: auser)
  -w, --password string    mysql password (default: sa)
      --log      string    fake database log output (default: faktor.db.log)
      --nocolor            disable color output
  -h, --help               display help

启动

启动伪数据库服务后, 进入命令行模式

$ ./faktor.bin
########    ###    ##    ## ########  #######  ########  
##         ## ##   ##   ##     ##    ##     ## ##     ##
##        ##   ##  ##  ##      ##    ##     ## ##     ##
######   ##     ## #####       ##    ##     ## ########  
##       ######### ##  ##      ##    ##     ## ##   ##   
##       ##     ## ##   ##     ##    ##     ## ##    ##  
##       ##     ## ##    ##    ##     #######  ##     ##

faktor »  

查看命令行帮助

faktor » help
########    ###    ##    ## ########  #######  ########  
##         ## ##   ##   ##     ##    ##     ## ##     ##
##        ##   ##  ##  ##      ##    ##     ## ##     ##
######   ##     ## #####       ##    ##     ## ########  
##       ######### ##  ##      ##    ##     ## ##   ##   
##       ##     ## ##   ##     ##    ##     ## ##    ##  
##       ##     ## ##    ##    ##     #######  ##     ##


fake mysql server

Commands:
  clear         clear the screen
  exit          exit the shell
  help          use 'help [command]' for command help
  load, create  load a schema [ with init sql script ]
  unload, drop  unload a schema
faktor » help load

load a schema [ with init sql script ]

Usage:
  load [flags] schema [script]

Args:
  schema  string    schema name
  script  string    schema init script

Flags:
  -h, --help     display help
faktor » help unload

unload a schema

Usage:
  unload [flags] schema

Args:
  schema  string    schema name

Flags:
  -h, --help     display help

加载数据库

faktor » load [schema name] [init sql script file path, optional]

卸载数据库

faktor » unload [schema name]

faktor-mysql's People

Contributors

charlemaznable avatar

Watchers

 avatar  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.