2008-12-20 22:59:35 +00:00
|
|
|
require 'mysqlplus'
|
|
|
|
begin
|
|
|
|
Mysql.real_connect('fakehost','root', '', 'local_leadgen_dev')
|
|
|
|
rescue Mysql::Error
|
|
|
|
end
|
|
|
|
begin
|
|
|
|
Mysql.real_connect('localhost','root', '', 'faketable')
|
|
|
|
rescue Mysql::Error
|
|
|
|
end
|
|
|
|
begin
|
|
|
|
Mysql.real_connect('localhost', 'root', 'pass', 'db', 3307)# bad port
|
|
|
|
rescue Mysql::Error
|
|
|
|
end
|
2009-04-21 02:13:24 +00:00
|
|
|
|
2008-12-20 22:59:35 +00:00
|
|
|
print "pass"
|
|
|
|
|
|
|
|
|