mysql - Ruby Mysql2 via proxy (QuotaGuard) -


i need connect mysql database using mysql2 gem. works in local on heroku need static ip address have installed quotaguard provide me proxy username , password.

the proxy working fine (tested curl)

i'm not able connect mysql using it, saw on post can specify mysql socket file while connecting have absolutely no idea put in it, can't find anywhere.

client = mysql2::client.new(:host => host, :database => database, :username => username, :password => password, :port => port, :socket => "my_path/to/mysql.sock") 

i randomly tried in my_path/to/mysql.sock doesn't affect anything, ignored

route {   proxy: xxxx:xxxxx@xxxxxx.quotaguard.com   port: 9293   proxyprotocol: socks_v5   method: username   command: connect } 

thanks


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -