in reply to Pretty technical DBI question
You'll need to look at the DBD::mysql docs, because there is no standard on the manner in which the hostname should be passed to the driver. The docs suggest this DSN:The hostname, if not specified or specified as '', will default to an mysql or mSQL daemon running on the local machine on the default port for the UNIX socket.
$dsn = "DBI:$driver:database=$database;host=$hostname;port=$port";
|
|---|