{"id":15517901,"url":"https://github.com/hfm/sample-proxysql","last_synced_at":"2026-05-09T14:39:34.585Z","repository":{"id":151130692,"uuid":"133275944","full_name":"hfm/sample-proxysql","owner":"hfm","description":"Playground for newcomers of ProxySQL","archived":false,"fork":false,"pushed_at":"2018-12-03T05:49:49.000Z","size":521,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T23:15:26.628Z","etag":null,"topics":["cluster","docker","docker-compose","mysql","proxysql"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hfm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-05-13T21:32:42.000Z","updated_at":"2018-12-28T06:36:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3c9ce61-d306-46f4-86de-d4ae7bbf84d0","html_url":"https://github.com/hfm/sample-proxysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fsample-proxysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fsample-proxysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fsample-proxysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fsample-proxysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hfm","download_url":"https://codeload.github.com/hfm/sample-proxysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246093105,"owners_count":20722395,"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","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":["cluster","docker","docker-compose","mysql","proxysql"],"created_at":"2024-10-02T10:14:30.294Z","updated_at":"2026-05-09T14:39:34.540Z","avatar_url":"https://github.com/hfm.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProxySQL sandbox\n\nRun `docker-compose up`\n\nIf you try [ProxySQL Cluster](https://github.com/sysown/proxysql/wiki/ProxySQL-Cluster), run `docker-compose -f docker-compose.cluster.yml up --scale proxysql=3`\n\n## Access MySQL through ProxySQL\n\n1. Run `docker-compose up`\n1. `mysql -uroot -h0.0.0.0 -P6033`\n\n```sql\n$ mysql -uroot -h0.0.0.0 -P6033\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 28\nServer version: 5.5.30 (ProxySQL)\n\nCopyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.\n\nOracle is a registered trademark of Oracle Corporation and/or its\naffiliates. Other names may be trademarks of their respective\nowners.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql\u003e SHOW DATABASES;\n+--------------------+\n| Database           |\n+--------------------+\n| information_schema |\n| backend            |\n| mysql              |\n| performance_schema |\n| sys                |\n+--------------------+\n5 rows in set (0.00 sec)\n```\n\n## Query Logging\n\n`./log/queries.log.XXXXXXXX`\n\nSee details: https://github.com/sysown/proxysql/wiki/Query-Logging\n\n## Connect to admin remotely\n\n- ProxySQL admin port: 6032\n\nNOTE: the default `admin` user CAN NOT connect remotely, so you'd connect remotely as a secondary user `radmin`: `mysql -uradmin -pradmin -h0.0.0.0 -P6032`\n\nSee details: https://github.com/sysown/proxysql/wiki/Global-variables#admin-admin_credentials\n\n## See ProxySQL statistics on Web UI\n\n1. Run docker-compose\n1. Access to http://0.0.0.0:6080 .\n1. Input `stats:stats` into BASIC auth to login.\n\nSee details: https://github.com/sysown/proxysql/wiki/HTTP-Web-Server\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfm%2Fsample-proxysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhfm%2Fsample-proxysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfm%2Fsample-proxysql/lists"}