'Mysql2 connection in ruby always take my Ip address to connect and ignores the value in host
I am trying to connect to my database through mysql2 in ruby with the following:
client = Mysql2::Client.new(:host => host, :username => username, :password => password, :database => database)
But I see that my host value no matter what I give is replaced by "my local ip address"
Can someone help me with this?
Thanks, Rv
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|