[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10402":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},10402,"mycli","dbcli\u002Fmycli","dbcli","A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.","http:\u002F\u002Fmycli.net",null,"Python",11921,696,168,10,0,1,4,19,43.53,"BSD 3-Clause \"New\" or \"Revised\" License",false,"main",true,[26,27,5,28,29,30],"auto-completion","database","mysql","python","syntax-highlighting","2026-06-12 02:02:21","# mycli\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fdbcli\u002Fmycli\u002Fworkflows\u002Fmycli\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fdbcli\u002Fmycli\u002Factions?query=workflow%3Amycli)\n\nA command line client for MySQL that can do auto-completion and syntax highlighting.\n\nHomepage: [https:\u002F\u002Fmycli.net](https:\u002F\u002Fmycli.net)\nDocumentation: [https:\u002F\u002Fmycli.net\u002Fdocs](https:\u002F\u002Fmycli.net\u002Fdocs)\n\n![Completion](doc\u002Fscreenshots\u002Ftables.png)\n![CompletionGif](doc\u002Fscreenshots\u002Fmain.gif)\n\nPostgres Equivalent: [https:\u002F\u002Fpgcli.com](https:\u002F\u002Fpgcli.com)\n\nQuick Start\n-----------\n\nIf you already know how to install Python packages, then you can install it via `pip`:\n\nYou might need sudo on Linux.\n\n```bash\npip install -U 'mycli[all]'\n```\n\nor\n\n```bash\nbrew update && brew install mycli  # Only on macOS\n```\n\nor\n\n```bash\nsudo apt-get install mycli  # Only on Debian or Ubuntu\n```\n\n### Usage\n\nSee\n\n```bash\nmycli --help\n```\n\nFeatures\n--------\n\n`mycli` is written using [prompt_toolkit](https:\u002F\u002Fgithub.com\u002Fjonathanslenders\u002Fpython-prompt-toolkit\u002F).\n\n* Auto-completion as you type for SQL keywords as well as tables, views and\n  columns in the database.\n* Fuzzy history search using [fzf](https:\u002F\u002Fgithub.com\u002Fjunegunn\u002Ffzf).\n* Syntax highlighting using Pygments.\n* Smart-completion (enabled by default) will suggest context-sensitive completion.\n    - `SELECT * FROM \u003Ctab>` will only show table names.\n    - `SELECT * FROM users WHERE \u003Ctab>` will only show column names.\n* Support for multiline queries.\n* Favorite queries with optional positional parameters. Save a query using\n  `\\fs \u003Calias> \u003Cquery>` and execute it with `\\f \u003Calias>`.\n* Timing of sql statements and table rendering.\n* Log every query and its results to a file (disabled by default).\n* Pretty print tabular data (with colors!).\n* Support for SSL connections\n* Shell-style trailing redirects with `$>`, `$>>` and `$|` operators.\n* Support for querying LLMs with context derived from your schema.\n* Support for storing passwords in the system keyring.\n\nMycli creates a config file `~\u002F.myclirc` on first run; you can use the\noptions in that file to configure the above features, and more.\n\nSome features are only exposed as [key bindings](doc\u002Fkey_bindings.rst).\n\nContributions:\n--------------\n\nIf you're interested in contributing to this project, first of all I would like\nto extend my heartfelt gratitude. I've written a small doc to describe how to\nget this running in a development setup.\n\nhttps:\u002F\u002Fgithub.com\u002Fdbcli\u002Fmycli\u002Fblob\u002Fmain\u002FCONTRIBUTING.md\n\n\n## Additional Install Instructions:\n\nThese are some alternative ways to install mycli that are not managed by our team but provided by OS package maintainers. These packages could be slightly out of date and take time to release the latest version.\n\n### Arch, Manjaro\n\nYou can install the mycli package available in the AUR:\n\n```\nyay -S mycli\n```\n\n### Debian, Ubuntu\n\nOn Debian, Ubuntu distributions, you can easily install the mycli package using apt:\n\n```\nsudo apt-get install mycli\n```\n\n### Fedora\n\nFedora has a package available for mycli, install it using dnf:\n\n```\nsudo dnf install mycli\n```\n\n### Windows\n\n#### Option 1: Native Windows\n\nInstall the `less` pager, for example by `scoop install less`.\n\nFollow the instructions on this blogpost: https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20221006045208\u002Fhttps:\u002F\u002Fwww.codewall.co.uk\u002Finstalling-using-mycli-on-windows\u002F\n\n**Mycli is not tested on Windows**, but the libraries used in the app are Windows-compatible.\nThis means it should work without any modifications, but isn't supported.\n\nPRs to add native Windows testing to Mycli CI would be welcome!\n\n#### Option 2: WSL\n\nEverything should work as expected in WSL.  This is a good option for using\nMycli on Windows.\n\n\n### Thanks:\n\nThis project was funded through kickstarter. My thanks to the [backers](https:\u002F\u002Fmycli.net\u002Fsponsors) who supported the project.\n\nA special thanks to [Jonathan Slenders](https:\u002F\u002Ftwitter.com\u002Fjonathan_s) for\ncreating [Python Prompt Toolkit](https:\u002F\u002Fgithub.com\u002Fjonathanslenders\u002Fpython-prompt-toolkit),\nwhich is quite literally the backbone library, that made this app possible.\nJonathan has also provided valuable feedback and support during the development\nof this app.\n\n[Click](https:\u002F\u002Fpalletsprojects.com\u002Fprojects\u002Fclick) is used for command line option parsing\nand printing error messages.\n\nThanks to [PyMysql](https:\u002F\u002Fgithub.com\u002FPyMySQL\u002FPyMySQL) for a pure python adapter to MySQL database.\n\n\n### Compatibility\n\nMycli is tested on macOS and Linux, and requires Python 3.10 or better.\n\nTo connect to MySQL versions earlier than 5.5, you may need to set the following in `~\u002F.myclirc`:\n\n```\n# character set for connections without --charset being set at the CLI\ndefault_character_set = utf8\n```\n\nor set `--charset=utf8` when invoking MyCLI.\n\n### Configuration and Usage\n\nFor more information on using and configuring mycli, [check out our documentation](https:\u002F\u002Fmycli.net\u002Fdocs).\n\nCommon topics include:\n- [Configuring mycli](https:\u002F\u002Fmycli.net\u002Fconfig)\n- [Using\u002FDisabling the pager](https:\u002F\u002Fmycli.net\u002Fpager)\n- [Syntax colors](https:\u002F\u002Fmycli.net\u002Fsyntax)\n","mycli 是一个用于 MySQL 的命令行客户端，支持自动补全和语法高亮。它采用 Python 编写，利用 prompt_toolkit 实现了 SQL 关键字、表名、视图及列名的实时补全，并通过 Pygments 提供语法高亮功能。智能补全功能可根据上下文提供更准确的建议。此外，mycli 还具备模糊历史查询、多行查询支持、查询结果美化输出、SSL 连接支持等特性。适合需要频繁与 MySQL 数据库交互且追求高效开发体验的开发者或数据库管理员使用。",2,"2026-06-11 03:28:13","top_topic"]