How to connect to MySQL on 3307 port in ruby dbi -
in ruby
db = dbi.connect("dbi:mysql:database=db1:host=dbhostname:port=3307", "username", "password")
isn't working me
using same details in direct mysql connection in command line does...?
what missing connection on port 3307 ???
i error:
access denied user 'username'@'localhost' (using password: yes) (dbi::databaseerror)
changed order
dbi:mysql:host=hostname;database=dbname;port=3307
worked reason don't know.
Comments
Post a Comment