etcd with DBine

How to connect DBine to etcd and what you can do once it's connected. This page is written from what the etcd driver says about itself, so it matches the version of DBine you download.

Connect

  1. In DBine, open New connection.
  2. Pick etcd in the list of engines.
  3. Fill in the fields below, press Test connection and then Save.

Default port: 2379.

General

FieldDescription
Server requiredExample: localhost
PortExample: 2379
UserOnly if etcd authentication is enabled.
PasswordKept in the system keychain, never in DBine's files.
Read-onlyOn or off.

SSH tunnel. The connection can go through an SSH server, even through a chain of bastions, with a password, a private key or the SSH agent. The server's fingerprint is checked against known_hosts or confirmed the first time.

SSL/TLS

FieldDescription
Encrypt the connection (TLS)On or off.
Trust the server certificateOn or off.

Advanced

FieldDescription
Key prefixThe explorer lists only the keys that start with this prefix.

What the explorer shows

The objects appear right under the connection:

Query editor

The editor uses etcd's commands, with completion for the connection's objects. Statements and commands run against the database selected in the tab.

What the editor accepts:

etcdctl commands, one per line:
get <key> [--prefix] [--limit=N] [--rev=N] [--keys-only] [--count-only]
put <key> <value> [--lease=<id>] [--ttl=<seconds>]
del <key> [--prefix]
lease grant <ttl> | lease revoke <id> | lease timetolive <id> [--keys] | lease list
member list | endpoint status | alarm list | compaction <revision>
user list | user add <user> <password> | user passwd <user> <password> | user delete <user> | user get <user>
user grant-role <user> <role> | user revoke-role <user> <role>
role list | role add <role> | role delete <role> | role get <role>
role grant-permission <role> read|write|readwrite <key> [--prefix] | role revoke-permission <role> <key> [--prefix]
auth status | auth enable | auth disable
snapshot save <file on this computer>
Arguments with spaces go in quotes; # starts a comment.

Ready-made templates for new objects:

Tools for etcd

Available

  • Server monitor
  • Visual designer for new objects
  • Native bulk load when migrating data
  • Users and permissions
  • Backups
  • Key search in the explorer

Not available for etcd

  • Graphical execution plans
  • Live query profiler
  • Sessions and running queries
  • End a session
  • Locks: who blocks whom
  • Cancel another session's query from the sessions list
  • Manual transactions (commit and rollback)
  • Index usage
  • Create databases
  • Drop databases
  • Database properties
  • Relations in the ER diagram
  • Rename objects
  • Compare and sync schemas
  • Clone tables

Why a tool doesn't apply to an engine, and the details of each one, are in the engine support reference.

Generated from the etcd driver 0.1.8, which DBine downloads the first time you connect to etcd.

Download DBineAll engines