https://github.com/samrocketman/consul-mysql
A MySQL relataional DB service backend using consul for service discovery.
https://github.com/samrocketman/consul-mysql
Last synced: 19 days ago
JSON representation
A MySQL relataional DB service backend using consul for service discovery.
- Host: GitHub
- URL: https://github.com/samrocketman/consul-mysql
- Owner: samrocketman
- License: mit
- Created: 2020-05-27T03:18:10.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2020-10-18T07:11:57.000Z (over 5 years ago)
- Last Synced: 2025-02-24T08:13:36.527Z (over 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Consul MySQL
This demo shows an example of MySQL using consul for service discovery.
This is a companion project for
https://github.com/samrocketman/docker-compose-ha-consul-vault-ui
This assumes you have cloned this repository and
docker-compose-ha-consul-vault-ui to `${HOME}/git/github`.
docker-compose-ha-consul-vault-ui must be started before this project and be
healthy.
# Connection
mysql.service.consul:3306
# Run a client external to the container
```bash
./mysql-client.sh
```
If you pass additional options to `mysql-client.sh`, then they will be passed
directly to mysql. If the last argument you pass is a database, then the
database will automatically be selected upon connection.
# License
[MIT License](LICENSE)