Skip to content

JustusAdam/noria-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noria MySQL adapter

This repository contains the MySQL/MariaDB protocol adapter for 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:

$ 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 <PORT>.

Connecting to Noria

The MySQL adapter uses ZooKeeper to find the Noria server. To specify the ZooKeeper server location, pass the -z argument:

$ 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.

About

MySQL/MariaDB protocol shim for Noria

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%