infostreams / db Goto Github PK
View Code? Open in Web Editor NEWVersion control for databases: save, restore, and archive snapshots of your database from the command line
License: MIT License
Version control for databases: save, restore, and archive snapshots of your database from the command line
License: MIT License
$ 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
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
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
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
Hi,
could we have the ability to save only specific table vs the whole db ?
[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.
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?
I'm trying to connect this to a MySQL db, but the connection is through a port that's not 3306. How do I configure it?
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
We use oracle and have to handle image size of around 150gb. How practical is it to use this with oracle?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.