TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Mycli – A CLI for MySQL with auto-completion and syntax highlighting

106 pointsby amjithalmost 10 years ago

9 comments

amjithalmost 10 years ago
I&#x27;m the author of this project. I&#x27;ll be happy to answer any questions.<p>Brief Intro: This is a command line tool that is intended as a replacement for MySQL client.<p>It works with MySQL, MariaDB and Percona.<p>It is written in Python and it works in Python 2.6 to Python 3.4.<p>This is a counter part to <a href="http:&#x2F;&#x2F;pgcli.com" rel="nofollow">http:&#x2F;&#x2F;pgcli.com</a>.<p>MyCli was funded through Kickstarter (<a href="https:&#x2F;&#x2F;www.kickstarter.com&#x2F;projects&#x2F;1839007321&#x2F;mysql-cli" rel="nofollow">https:&#x2F;&#x2F;www.kickstarter.com&#x2F;projects&#x2F;1839007321&#x2F;mysql-cli</a>)
评论 #9975737 未加载
评论 #9975860 未加载
评论 #9975774 未加载
leni536almost 10 years ago
This is really cool. I wanted to write an interactive input module for sqlite and I really struggled with GNU readline. It looks like I should try it again using python-prompt-toolkit. My use case would be something different than writing SQL statements, my module would let you create interactive, autocompleting input forms. I usually struggle inputting student exam scores into large spreadsheets and I want to replace that with sqlite.<p>And thanks for this one: <a href="https:&#x2F;&#x2F;github.com&#x2F;jonathanslenders&#x2F;python-prompt-toolkit&#x2F;tree&#x2F;master&#x2F;examples&#x2F;tutorial" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jonathanslenders&#x2F;python-prompt-toolkit&#x2F;tr...</a>
评论 #9976117 未加载
Grue3almost 10 years ago
I gave it a spin. Seems pretty useful. Is there a way to view the last result again without re-running the query?<p>Also the keybindings are missing from the docs. For example on <a href="http:&#x2F;&#x2F;mycli.net&#x2F;multi-line" rel="nofollow">http:&#x2F;&#x2F;mycli.net&#x2F;multi-line</a> it says &quot;You can enable multi-line mode by pressing key&quot; but doesn&#x27;t say which key to press. And on <a href="http:&#x2F;&#x2F;mycli.net&#x2F;history" rel="nofollow">http:&#x2F;&#x2F;mycli.net&#x2F;history</a> it says &quot;So press and then start typing your search term to see the queries&quot;, again doesn&#x27;t say what to press.
评论 #9976181 未加载
jafingialmost 10 years ago
Looks really great! I think you should highlight better that it support fuzzy search, as I had to dig deep into Docs-&gt;Auto completion to find it (was about to suggest it to you).<p>Good luck with it!
jupiter909almost 10 years ago
Looks nice. Will give it a proper test drive soon.<p>Am currently using: <a href="http:&#x2F;&#x2F;ewaters.github.io&#x2F;altsql-shell&#x2F;" rel="nofollow">http:&#x2F;&#x2F;ewaters.github.io&#x2F;altsql-shell&#x2F;</a><p>Software that few people know about.Worth others trying out too.<p>The data world really does need these more sane solutions.
jgalt212almost 10 years ago
Does is protect against auto-completing dangerous commands like &#x27;DROP TABLE;&#x27;?
评论 #9978741 未加载
PauloManriquealmost 10 years ago
Works perfect on Windows 10. Great tool!
tcfunkalmost 10 years ago
Can I use this for mysql over ssh?
评论 #9982596 未加载
talleyrandalmost 10 years ago
Looks great, thank you!