A proxy server for MySQL.
Image (latest): https://hub.docker.com/_/mysql
docker run --rm --network host --name mysql -e MYSQL_ROOT_PASSWORD=foobar mysql:latest --authentication-policy="*,,"
dotnet run --project MySqlProxyServer
mysql --ssl-mode=DISABLED --default-auth=mysql_native_password --host=127.0.0.1 --port=8080 --user=<any username> --password=<any password>
Only works if the auth method is
mysql_native_password
.
Log files are located at MySqlProxyServer/bin/Debug/net5.0/logs
.
Format of the log file name is: YY-MM-DD
.
Simply put RANDOM_MASK
at the end of your query.
SELECT user from mysql.user RANDOM_MASK;
-
Currently only
mysql_native_password
authentication is supported. -
Graceful exit on socket is not implemented.
-
Socket is not released when socket connection finishes.