Last modified: 2013-06-02 17:43:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50627, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48627 - Provide shortcut "sql" or similar to connect to the correct database
Provide shortcut "sql" or similar to connect to the correct database
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Lowest enhancement
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-20 04:45 UTC by Tim Landscheidt
Modified: 2013-06-02 17:43 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tim Landscheidt 2013-05-20 04:45:34 UTC
Toolserver has a utility "sql" that hides the lookup of the correct database server to connect to and gives users the ease to just say "sql nlwiki" or "sql nlwiki 'SELECT * FROM page LIMIT 1;'".

Source should be at https://svn.toolserver.org/svnroot/puppet/trunk/puppet/modules/scripts/files/sql (down at the moment), cf. https://jira.toolserver.org/browse/TS-1651 for a small bugfix.
Comment 1 Sam Reed (reedy) 2013-05-20 12:55:35 UTC
Noting the WMF has what is presumably a variant of the same script
Comment 2 Gerrit Notification Bot 2013-05-21 20:10:28 UTC
Related URL: https://gerrit.wikimedia.org/r/64847 (Gerrit Change Ie111a5adad4c6378ed71825394548f47d4991eaf)
Comment 3 Peter Bena 2013-05-27 09:46:45 UTC
implemented on -login
Comment 4 Tim Landscheidt 2013-05-27 18:15:48 UTC
(In reply to comment #3)
> implemented on -login

Nope.
Comment 5 Peter Bena 2013-05-29 08:41:01 UTC
Can you elaborate more on that? The tools is there in /usr/bin/sql (it differs from the patch though) IMHO this patch should be somehow merged with the second one.

However the sql tool is present and works
Comment 6 Peter Bena 2013-05-30 08:29:27 UTC
the tools is available both on -login and -dev servers, despite the patch needs to be merged.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links