0.3.11 • Published 7 years ago

mysql-creator v0.3.11

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

mysql-creator

A simple mysql database generator tools for nodejs.

Database config files are written using yaml. See examples under test.

Install

node.js

  npm install mysql-creator --save

Usage examples

  1. create database
      ./bin/mysql_creator ${PATH_TO_CONFIG_FILE}
  2. import data
      ./bin/mysql_creator -h ${HOSTNAME} -u ${USERNAME} -d ${DBNAME} -i ${PATH_TO_DATA_FILE} -p
  3. export data
      ./bin/mysql_creator -h ${HOSTNAME} -u ${USERNAME} -d ${DBNAME} -o ${PATH_TO_OUTPUT_FILE} -p
  4. export database structure
      ./bin/mysql_creator -h ${HOSTNAME} -u ${USERNAME} -d ${DBNAME} -e ${PATH_TO_OUTPUT_FILE} -p
    具体命令行参数的格式见 minimist

Params

  • -d: target database
  • -e: path to file where structure are exported
  • -h: mysql hostname
  • -i: path to file with data to import
  • -o: path to file where data are exported
  • -p: mysql password
  • -u: mysql username
0.3.11

7 years ago

0.3.10

7 years ago

0.3.9

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.4.0

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago