Skip to Content.
Sympa Menu

devel - MySQL connect string

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: address@concealed (Jérôme Marant)
  • To: address@concealed
  • Subject: MySQL connect string
  • Date: 22 May 2001 10:27:57 +0200


Hi,

man DBD::mysql tells that the MySQL connect string looks like :

$driver = "mysql";
$dsn = "DBI:$driver:database=$database;host=$hostname;port=$port";

However, in src/List.pm (from the CVS):

}else {
$connect_string = sprintf 'DBI:%s:dbname=%s;host=%s',
$Conf{'db_type'}, $Conf{
'db_name'}, $Conf{'db_host'};
}

is used for both Pg and mysql. Does dbname= also works for MySQL (instead of
database=) ?

Thanks.

--
Jérôme Marant <address@concealed>

http://IDEALX.org



Archive powered by MHonArc 2.6.19+.

Top of Page