Sign inSign up

rarfaoui/mysqlproxy

By rarfaoui

Updated almost 10 years ago

mysql-proxy 0.8.1 installed within an Ubuntu 14.04 OS

Image
0

225

rarfaoui/mysqlproxy repository overview

This is just an mysql-proxy instalation using Ubuntu 14.04 OS. mysql-proxy is Enabled and configured using only one backend address. ==How to use==

  1. first build the image: docker build -t rarfaoui/mysqlproxy .
  2. Run the image: docker run -ti --name=mysqlproxy rarfaoui/mysqlproxy /bin/bash I prefer to assign a fix IP address during running the image ;) . first create a Docker Network and then extend the run Docker command with something like this (--net mynet1 --ip 172.19.0.15). mynet1 : Is the Network name.
  3. Take a look to following file :/etc/mysql-proxy/mysql-proxy.cnf
  4. modify the proxy-backend-addresses to your Master MySQL Database.
  5. modify the .cnf file to add new slave or other read only backend.

PS. log file is located in : /var/log/mysql-proxy.log PS: Your PhpMyAdmin can point to the mysqlproxy Server something like: //Docker mysqlproxy $i++; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['host'] = '172.19.0.15'; // Use your mysql-proxy IP $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['port'] = '3306';

Tag summary

Content type

Image

Digest

Size

118.3 MB

Last updated

almost 10 years ago

docker pull rarfaoui/mysqlproxy