Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mit-pdos/noria-mysql
MySQL/MariaDB protocol shim for Noria
https://github.com/mit-pdos/noria-mysql
Last synced: 2 months ago
JSON representation
MySQL/MariaDB protocol shim for Noria
- Host: GitHub
- URL: https://github.com/mit-pdos/noria-mysql
- Owner: mit-pdos
- License: mit
- Created: 2017-12-14T03:21:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T21:10:54.000Z (about 4 years ago)
- Last Synced: 2024-04-30T09:03:06.237Z (9 months ago)
- Language: Rust
- Homepage:
- Size: 771 KB
- Stars: 66
- Watchers: 19
- Forks: 15
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Noria MySQL adapter
This repository contains the MySQL/MariaDB protocol adapter for
[Noria](https://github.com/mit-pdos/noria). The adapter allows legacy
applications that use parameterized MySQL queries to directly start
using Noria, with no or minimal source code changes.## Running the adapter
To run the adapter and listen on the default MySQL port (3306), simply type:```console
$ cargo run --release -- --deployment $NORIA_DEPLOYMENT_ID
```The `NORIA_DEPLOYMENT_ID` is the same deployment ID you used when starting
the Noria server.If you would like to use a different port (e.g., because you're also running
a MySQL server), pass `-p `.## Connecting to Noria
The MySQL adapter uses ZooKeeper to find the Noria server. To specify the
ZooKeeper server location, pass the `-z` argument:```console
$ cargo run --release -- --deployment $NORIA_DEPLOYMENT_ID -z 172.16.0.19:2181
```
... for a ZooKeeper listening on port `2181` at IP `172.16.0.19`.