I am trying to configure mysql-proxy on ubuntu on amazon ec2 I did the following:
sudo apt-get install mysql-proxy
vi /etc/default/mysql-proxy
I will put the following content on "/ etc / default / mysql-proxy"
ENABLED="true"
OPTIONS="--proxy-lua-script=/usr/share/mysql-proxy/rw-splitting.lua
--proxy-address=127.0.0.1:3306
--proxy-backend-addresses=private_ip_of_another_ec2_db_server:3306,private_ip_of_another_ec2_db_server:3306"
also associated with "--proxy-address = private_ip_or_public_ip_of_proxy-server: 3306 or 4040" and "--proxy-backend-addresses = public_ip_of_another_ec2_db_server: 3306, public_ip_of_another_ec2_db_server: 3306"
after that I tried to connect the proxy server from another computer using mysql, for example:
mysql -u some_user -pxxxxx -h proxy_server_ip
or
mysql -u some_user -pxxxxx -h proxy_server_ip -P 4040
but its error does not work:
ERROR 2003 (HY000): Can't connect to MySQL server on 'ip' (10061)
I want to say that you can connect the db server remotely, where I allowed remote connection to any host
I also tried to run /etc/init.d/mysql-proxy start or restart /etc/init.d/mysql-proxy, but could not get the result
, /etc/init.d/mysql-proxy stop
- mysql-proxy ubuntu
===
stackoverflow, , . , .
mysql-client mysql- ( -)
mysql-proxy, :
mysql-proxy --proxy-backend-addresses=10.73.151.244:3306 --proxy-backend-addresses=10.73.198.7:3306 --proxy-address=:4040 --admin-username=root --admin-password=root --admin-lua-script=>/usr/lib/mysql-proxy/lua/admin.lua
- .
, , , .
, - ?