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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -