{"id":16349644,"url":"https://github.com/arojunior/docker-springboot-proxysql","last_synced_at":"2026-05-04T01:34:59.544Z","repository":{"id":82619217,"uuid":"138620470","full_name":"arojunior/docker-springboot-proxysql","owner":"arojunior","description":"MySQL Replication and ProxySQL with Spring boot application to test connections","archived":false,"fork":false,"pushed_at":"2020-10-23T16:06:25.000Z","size":59,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T17:38:10.314Z","etag":null,"topics":["docker","java","mysql","proxysql","spring-boot"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/arojunior.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-06-25T16:20:30.000Z","updated_at":"2021-10-22T08:12:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0ca20c0-51fe-476a-a0fa-58bb1c83840f","html_url":"https://github.com/arojunior/docker-springboot-proxysql","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"7ed566bb8d06f1afcc51247919b822267cffb1ff"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arojunior/docker-springboot-proxysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arojunior%2Fdocker-springboot-proxysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arojunior%2Fdocker-springboot-proxysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arojunior%2Fdocker-springboot-proxysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arojunior%2Fdocker-springboot-proxysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arojunior","download_url":"https://codeload.github.com/arojunior/docker-springboot-proxysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arojunior%2Fdocker-springboot-proxysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","java","mysql","proxysql","spring-boot"],"created_at":"2024-10-11T01:00:33.641Z","updated_at":"2026-05-04T01:34:59.528Z","avatar_url":"https://github.com/arojunior.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker MySQL Replication and ProxySQL experiments\n\nSimple application with MySQL Replication master/master. Server made with Spring Boot and connected to ProxySQL, without knowing the databases.\nYou can test it starting the application and stopping one of the MySQL Server's, the behavior of the proxy is to keep the connection up.\n\n### Setup with Docker\n\nTo start the proxy and database's:\n```sh\ndocker-compose up -d\n```\n\n### Steps to configure MySQL replication\n\nGo to **mysql_server_1**\n```sh\nshow master status;\n```\n\nTake result and fill:\n\n```sh\nstop slave;\n\nCHANGE MASTER TO master_host='mysql_master_2', master_port=3308, master_user='root', master_password='root',master_log_file='mysql-bin.000001', master_log_pos=154;\n\nstart slave;\n```\n\n* Change `master_log_file` and `master_log_pos` with previous result.\n\nThen go to **master_server_2** and repeat steps:\n\n```sh\nshow master status;\n```\n\nTake result and fill:\n\n```sh\nstop slave;\n\nCHANGE MASTER TO master_host='mysql_master_1', master_port=3307, master_user='root', master_password='root',master_log_file='mysql-bin.000001', master_log_pos=154;\n\nstart slave;\n```\n\n* Change `master_log_file` and `master_log_pos` with previous result.\n\n### Start tests\n```sh\ncd server\n./mvnw test\n```\n\nWith tests running, you can test the proxy stopping and starting the instances of MySQL\n\n```sh\ndocker-compose stop mysql_master_1 \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farojunior%2Fdocker-springboot-proxysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farojunior%2Fdocker-springboot-proxysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farojunior%2Fdocker-springboot-proxysql/lists"}