RubyでMysql接続テスト

>|ruby|

require 'mysql'
hostname = 'xyz'
username = 'xx'
password = 'yy'
dbname = 'zz'

client= Mysql.connect('hostname', 'username', 'password', 'dbname')

||<

 

gems/ruby-mysql-2.9.14/lib/mysql/protocol.rb:153:in `initialize': getaddrinfo: ���̂悤�ȃz�X�g�͕s���ł��B  (SocketError)