Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] problème mysql & sympa ... wwsympa

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Olivier Salaun <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: Re: [sympa-dev] problème mysql & sympa ... wwsympa
  • Date: Thu, 28 Jun 2001 16:57:22 +0200

Christophe Turbout wrote:
> There are some trouble on wwsympa and sympa connexion to mysql SGBD.
>
> The DBI driver does not take into account my.cnf config file. So if
> you try to change the location of socket used on mysql, DBI driver try
> to connect to another one which is apparently /var/un/mysqld/mysqld.sock
> [...]
> so I put it in List.pm:
>
> $connect_string = sprintf
> 'DBI:%s:dbname=%s;host=%s;mysql_read_default_file=/etc/my.cnf,
> $Conf{'db_type'}, $Conf{'db_name'}, $Conf{'db_host'};
>
> in fact, that's works fine !
>
> So, could it be possible adding an option in sympa.conf which can use
> my.cnf file ?

I've just added two new parameters in CVS version of Sympa :

o db_options : a sympa.conf parameter that defines additional
options for the DBI connect string

o connect_options : an entry of 'include_sql_query' list
parameter.

Does it meet your needs ?

--
Olivier Salaün
Comité Réseau des Universités



Archive powered by MHonArc 2.6.19+.

Top of Page