Make port and socket optional params, as per mysql-alive.rb