You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a use-case where I'd like to have programmatic access to replica database connection details: tableau-mkt/pantheon-mysql-proxy#4.
In an ideal world, if a replica is enabled for a site/environment, it would just show up as another field (or fields) in the terminus site connection-info command, for example:
# Would print details to the slave DB
terminus site connection-info --site=$PSITE --env=live --field="mysql_slave_command"
# Would include info/keys for the replica
terminus site connection-info --site=$PSITE --env=live
+----------------------+-------------------------------------------------------------------------------------------+
| Key | Value |
+----------------------+-------------------------------------------------------------------------------------------+
| Mysql Host | dbserver.live.UUID.drush.in |
| Mysql Username | pantheon |
| Mysql Password | b4tt3ryh0rs3st@pl3 |
| Mysql Port | 13370 |
| Mysql Database | pantheon |
| Mysql Url | mysql://pantheon:{uuid}@dbserver.live.{uuid}.drush.in:13370/pantheon |
| Mysql Command | mysql -u pantheon -pb4tt3ryh0rs3st@pl3 -h dbserver.live.{uuid}.drush.in -P 13370 pantheon |
| Mysql Slave Host | 111.111.111.111 |
| Mysql Slave Username | pantheon |
| Mysql Slave Password | b4tt3ryh0rs3st@pl3 |
| Mysql Slave Port | 13371 |
| Mysql Slave Database | pantheon |
| Mysql Slave Url | mysql://pantheon:111.111.111.111:13371/pantheon |
| Mysql Slave Command | mysql -u pantheon -pb4tt3ryh0rs3st@pl3 -h 111.111.111.111 -P 13371 pantheon |
+----------------+-------------------------------------------------------------------------------------------------+
Is there appetite to have this included in terminus core, or would you recommend getting at this via a plugin?
The text was updated successfully, but these errors were encountered:
I've got a use-case where I'd like to have programmatic access to replica database connection details: tableau-mkt/pantheon-mysql-proxy#4.
In an ideal world, if a replica is enabled for a site/environment, it would just show up as another field (or fields) in the
terminus site connection-info
command, for example:Is there appetite to have this included in terminus core, or would you recommend getting at this via a plugin?
The text was updated successfully, but these errors were encountered: