Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t0ha/mysql2filetree
This is a tool written in Python that allows to extract MySQL database into easy to edit files and directories and and push your changes back to MySQL server
https://github.com/t0ha/mysql2filetree
Last synced: about 1 month ago
JSON representation
This is a tool written in Python that allows to extract MySQL database into easy to edit files and directories and and push your changes back to MySQL server
- Host: GitHub
- URL: https://github.com/t0ha/mysql2filetree
- Owner: T0ha
- Created: 2013-07-10T08:20:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-27T04:21:49.000Z (almost 11 years ago)
- Last Synced: 2023-04-04T02:41:43.851Z (over 1 year ago)
- Language: Python
- Size: 238 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MySQL2filetree
==============This is a small console tool written in Python.
It allows to dump MySQL database into easy to edit files and directories
and push it back to MySQL server with your changes.### USAGE:
sqltool.py [options] [operation [object_type [object_name]]]
#### Operations:
dump or restore (default - dump)#### Object Types:
* table
* view
* proc
* fun
* structure
* all (default)#### Options:
- `-h` - short help
- `-H` or `--host` - MySQL host (default: 127.0.0.1)
- `-u` or `--user` - MySQL username (default: root)
- `-p` or `--password` - MySQL password (default: yoursuperpassword)
- `-d` or `--database` - MySQL database name (default: test)
- `-D` or `--prefix` - path to structure files (default: ./db/)
- `-i` or `--ignore-file` - path to file with list of tables data from which shouldn't be imported (each table name should be a newline with empty line before EOF#### Dependences:
- Python >= 2.6
- MySQLdb (python-mysql or python2-mysql)
- mysqldump (mysql-client)You are welcome with questions and suggestions.
Please email Shvein Anton: [email protected]