GithubHelp home page GithubHelp logo

infostreams / db Goto Github PK

View Code? Open in Web Editor NEW
1.3K 1.3K 27.0 106 KB

Version control for databases: save, restore, and archive snapshots of your database from the command line

License: MIT License

Shell 100.00%

db's People

Contributors

infostreams avatar kevzettler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

db's Issues

Missing phpmyadmin load connector

$ db load localhost c74e6997b1a5c8f0ee763ed2d237963e6c26cf7cab78b0ec3807c1cf
/Users/kevzettler/code/db/bin/db-load: line 30: /Users/kevzettler/code/db/bin/drivers/mysql/connectors/phpmyadmin/load: No such file or directory

Nuke fails to connect to SSH remote MySQL?

I have a remote environment prod I can save and load to correctly

$ db load prod d1b79e59d484a512552a6cc0587ff287ec2d427901dd8d494a6b32fe
mysql: [Warning] Using a password on the command line interface can be insecure.
[prod] Loaded snapshot d1b79e59d484a512552a6cc0587ff287ec2d427901dd8d494a6b32fe

However when I try the nuke command it fails to connect. Also looks like its trying to use the local loopback ip 127.0.0.1 ?

kevs-mbp:radcade kevzettler$ db nuke prod
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)
mysqldump: Got error: 2003: Can't connect to MySQL server on '127.0.0.1' (61) when trying to connect
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)
[prod] Nuked gamezill_fsew4a23A

Cannot connect to MAMP mysql

MAMP runs mysql on port 8889 and on a non standard socket. /Applications/MAMP/tmp/mysql/mysql.sock instead of /tmp/mysql.sock

How to specify theses values to db?

I can connect to it using the mysql cli utility by creating a symlink on the socket and specifying the port

Allow use of HEAD

Is there a way to programmatically reference the latest save/hash?

In git this would be the equivalent of HEAD

for example:

db export production HEAD /blah/blah/dump.sql

Save fails unknown table `column_statisctics`

[localhost]
mysqldump: Couldn't execute 'SELECT COLUMN_NAME,                       JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"')                FROM information_schema.COLUMN_STATISTICS                WHERE SCHEMA_NAME = 'gamezill_fsew4a23A' AND TABLE_NAME = '2173_ReportedLinks';': Unknown table 'column_statistics' in information_schema (1109)
Database not changed since last dump, not making a new snapshot.

Support for PostgreSQL

Hi!

I really like this project and the idea of it! Great work.
My goto db is PostgreSQL, are there any plans to support it?

error output but also success snapshot?

I'm getting this error but it also says a snapshot was made successfully. I'm concerned that its taking invalid snapshots.

mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
Successfully made snapshot of database - hash 9ecae82faec85196449a3e2ffa13f25eb0db95d35e9d2cabf14f530e

Max data handling limit

We use oracle and have to handle image size of around 150gb. How practical is it to use this with oracle?

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.