{"id":21007918,"url":"https://github.com/lflxp/lflxp-orzdba","last_synced_at":"2025-09-01T12:37:18.002Z","repository":{"id":57519489,"uuid":"309335161","full_name":"lflxp/lflxp-orzdba","owner":"lflxp","description":"mysql monitor cli","archived":false,"fork":false,"pushed_at":"2024-02-01T06:23:22.000Z","size":663,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T16:39:47.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lflxp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-02T10:27:37.000Z","updated_at":"2024-08-21T06:43:28.000Z","dependencies_parsed_at":"2024-11-19T09:10:58.268Z","dependency_job_id":"cd3d3f04-ebae-4639-b4e3-192721913b88","html_url":"https://github.com/lflxp/lflxp-orzdba","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lflxp/lflxp-orzdba","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-orzdba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-orzdba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-orzdba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-orzdba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lflxp","download_url":"https://codeload.github.com/lflxp/lflxp-orzdba/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Flflxp-orzdba/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273123710,"owners_count":25049862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T09:10:51.161Z","updated_at":"2025-09-01T12:37:17.960Z","avatar_url":"https://github.com/lflxp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"MySQL orzdba go version performance analyzer\n\n![](https://github.com/lflxp/lflxp-orzdba/blob/master/asset/mysql.png)\n![](https://github.com/lflxp/lflxp-orzdba/blob/master/asset/mysql2.png)\n\n# Install\n\n```\ngit clone https://github.com/lflxp/lflxp-orzdba\ncd lflxp-orzdba\nmake install\nlflxp-orzdba -h\n```\n\n## Feature\n\n* 本地/远程连接\n* Databases\n* Variables\n    * binlog_format\n    * open_files_limit\n    * ...\n* dashboard\n* test\n    * GetHostAndIps \n    * GetShowDatabases   \n    * GetShowGlobalVariables  \n    * GetShowVariables           \n    * GetShowStatus        \n    * GetShowGlobalStatus     \n* processlist\n* status\n    * innodb信息\n    * CRUD信息\n    * Net IO\n    * Slave\n    * Threads\n    * Semi\n\n## 使用\n\nmysql是showme终端GUI显示，提供动态参数提示功能。\n\n* lflxp-orzdba status -H 127.0.0.1 -p system -innodb -com -lazy\n* lflxp-orzdba status -p $pwd -lazy -l -s -d -n -c\n\n# Usage\n\n`Format`\n\n```\nUsage of lflxp-orzdba:\n  -B    Print Bytes received from/send to MySQL(Bytes_received,Bytes_sent).\n  -H string\n        Mysql连接主机，默认127.0.0.1 (default \"127.0.0.1\") (default \"127.0.0.1\")\n  -L    Print to Logfile. (default \"none\")\n  -N    打印网络详细信息\n  -P string\n        Mysql连接端口,默认3306 (default \"3306\") (default \"3306\")\n  -S string\n        mysql socket连接文件地址 (default \"/tmp/mysql.sock\") (default \"/tmp/mysql.sock\")\n  -T    Print Threads Status(Threads_running,Threads_connected,Threads_created,Threads_cached).\n  -c    打印Cpu info\n  -com\n        Print MySQL Status(Com_select,Com_insert,Com_update,Com_delete).\n  -d    打印Disk info\n  -db string\n        Mysql 指定databases,默认：mysql (default \"mysql\")\n  -hit\n        Print Innodb Hit%.\n  -innodb\n        Print InnodbInfo(include -t,-innodb_pages,-innodb_data,-innodb_log,-innodb_status)\n  -innodb_data\n        Print Innodb Data Status(Innodb_data_reads/writes/read/written)\n  -innodb_log\n        Print Innodb Log  Status(Innodb_os_log_fsyncs/written)\n  -innodb_pages\n        Print Innodb Buffer Pool Pages Status(Innodb_buffer_pool_pages_data/free/dirty/flushed)\n  -innodb_rows\n        Print Innodb Rows Status(Innodb_rows_inserted/updated/deleted/read).\n  -innodb_status\n        Print Innodb Status from Command: 'Show Engine Innodb Status'\n  -l    打印Load info\n  -lazy\n        Print Info  (include -t,-l,-c,-s,-com,-hit).\n  -mysql\n        Print MySQLInfo (include -t,-com,-hit,-T,-B).\n  -n    打印net info\n  -nocolor\n        不显示颜\n  -p string\n        Mysql 密码 (default \"system\")\n  -s    打印swap info\n  -semi\n        半同步监控\n  -slave\n        打印Slave info\n  -t    打印当前时间\n  -u string\n        Mysql 用户名,默认: root (default \"root\"\n```\n\n`For Coder Demo`\n\n```go\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"os\"\n\t\"strings\"\n\n\t\"github.com/lflxp/lflxp-orzdba/pkg\"\n)\n\nvar (\n\tprintByte     bool\n\thost          string\n\tlog           bool\n\tport          string\n\tuser          string\n\tpwd           string\n\tdb            string\n\tsockpath      string\n\tthread        bool\n\tcom           bool\n\thit           bool\n\tnocolor       bool\n\ttime          bool\n\tinnodb        bool\n\tinnodb_rows   bool\n\tinnodb_pages  bool\n\tinnodb_data   bool\n\tinnodb_log    bool\n\tinnodb_status bool\n\tmysql         bool\n\tlazy          bool\n\tsemi          bool\n\tslave         bool\n)\n\nfunc init() {\n\tflag.Bool(\"l\", false, \"打印Load info\")\n\tflag.Bool(\"c\", false, \"打印Cpu info\")\n\tflag.Bool(\"s\", false, \"打印swap info\")\n\tflag.Bool(\"d\", false, \"打印Disk info\")\n\tflag.Bool(\"n\", false, \"打印net info\")\n\tflag.Bool(\"N\", false, \"打印网络详细信息\")\n\tflag.StringVar(\u0026host, \"H\", \"127.0.0.1\", \"Mysql连接主机，默认127.0.0.1 (default \\\"127.0.0.1\\\")\")\n\tflag.StringVar(\u0026port, \"P\", \"3306\", \"Mysql连接端口,默认3306 (default \\\"3306\\\")\")\n\tflag.StringVar(\u0026user, \"u\", \"root\", \"Mysql 用户名,默认: root\")\n\tflag.StringVar(\u0026pwd, \"p\", \"system\", \"Mysql 密码\")\n\tflag.StringVar(\u0026db, \"db\", \"mysql\", \"Mysql 指定databases,默认：mysql\")\n\tflag.StringVar(\u0026sockpath, \"S\", \"/tmp/mysql.sock\", \"mysql socket连接文件地址 (default \\\"/tmp/mysql.sock\\\")\")\n\tflag.BoolVar(\u0026log, \"L\", false, \"Print to Logfile. (default \\\"none\\\")\")\n\tflag.BoolVar(\u0026printByte, \"B\", false, \"Print Bytes received from/send to MySQL(Bytes_received,Bytes_sent).\")\n\tflag.BoolVar(\u0026thread, \"T\", false, \"Print Threads Status(Threads_running,Threads_connected,Threads_created,Threads_cached).\")\n\tflag.BoolVar(\u0026com, \"com\", false, \"Print MySQL Status(Com_select,Com_insert,Com_update,Com_delete).\")\n\tflag.BoolVar(\u0026hit, \"hit\", false, \"Print Innodb Hit%.\")\n\tflag.BoolVar(\u0026nocolor, \"nocolor\", false, \"不显示颜\")\n\tflag.BoolVar(\u0026time, \"t\", false, \"打印当前时间\")\n\tflag.BoolVar(\u0026innodb, \"innodb\", false, \"Print InnodbInfo(include -t,-innodb_pages,-innodb_data,-innodb_log,-innodb_status)\")\n\tflag.BoolVar(\u0026innodb_rows, \"innodb_rows\", false, \"Print Innodb Rows Status(Innodb_rows_inserted/updated/deleted/read).\")\n\tflag.BoolVar(\u0026innodb_pages, \"innodb_pages\", false, \"Print Innodb Buffer Pool Pages Status(Innodb_buffer_pool_pages_data/free/dirty/flushed)\")\n\tflag.BoolVar(\u0026innodb_data, \"innodb_data\", false, \"Print Innodb Data Status(Innodb_data_reads/writes/read/written)\")\n\tflag.BoolVar(\u0026innodb_log, \"innodb_log\", false, \"Print Innodb Log  Status(Innodb_os_log_fsyncs/written)\")\n\tflag.BoolVar(\u0026innodb_status, \"innodb_status\", false, \"Print Innodb Status from Command: 'Show Engine Innodb Status'\")\n\tflag.BoolVar(\u0026mysql, \"mysql\", false, \"Print MySQLInfo (include -t,-com,-hit,-T,-B).\")\n\tflag.BoolVar(\u0026lazy, \"lazy\", false, \"Print Info  (include -t,-l,-c,-s,-com,-hit).\")\n\tflag.BoolVar(\u0026semi, \"semi\", false, \"半同步监控\")\n\tflag.BoolVar(\u0026slave, \"slave\", false, \"打印Slave info\")\n\tflag.Parse()\n}\n\nfunc main() {\n\tfmt.Println(fmt.Sprintf(\"mysql %s\", strings.Join(os.Args[1:], \" \")))\n\terr := pkg.BeforeRun(fmt.Sprintf(\"mysql %s\", strings.Join(os.Args[1:], \" \")))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Flflxp-orzdba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flflxp%2Flflxp-orzdba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Flflxp-orzdba/lists"}