You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Chris Faust <cf...@doyougot.com> on 2004/06/03 16:50:34 UTC

MySQL Socket Location

Good Morning,

I'm trying to pass the location of the MySQL sock file in the DB string (like I would anytime I'm using DBI) in:

/etc/mail/spamassassian/local.cf

But I continue to get the error that SA can't connect to MySQL  through socket '/the/wrong/path/here'.

My local.cf is simply

user_scores_dsn DBI:mysql:database=spamassassin:host=localhost:mysql_socket=/db0/mysql/mysql.sock
user_scores_sql_username spamassassin 
user_scores_sql_password xxxx

Is there some other way I can pass the socket location?

Thanks in Advance
-Chris


Re: MySQL Socket Location

Posted by Chris Faust <cf...@doyougot.com>.
Thanks for the reply Michael, sorry, I should have said that I tried that
already...

I still get the same error either way.

-Chris


----- Original Message ----- 
From: "Michael Parker" <pa...@pobox.com>
To: "Chris Faust" <cf...@doyougot.com>
Cc: <sp...@incubator.apache.org>
Sent: Thursday, June 03, 2004 11:21 AM
Subject: Re: MySQL Socket Location


> On Thu, Jun 03, 2004 at 10:50:34AM -0400, Chris Faust wrote:
> > But I continue to get the error that SA can't connect to MySQL  through
socket '/the/wrong/path/here'.
> >
> > My local.cf is simply
> >
> > user_scores_dsn
DBI:mysql:database=spamassassin:host=localhost:mysql_socket=/db0/mysql/mysql
.sock
> > user_scores_sql_username spamassassin
> > user_scores_sql_password xxxx
>
> perldoc DBD::mysql
>
> Try using a ; (semi-colon) instead of a : (colon) between key/value
> pairs.
>
> For instance
>
> user_scores_dsn
DBI:mysq:database=spamassassin;host=localhost;mysql_sock=/db0/mysql/mysql.so
ck
>
> Again, see perldoc DBD::mysql for more info.
>
> Michael
>



Re: MySQL Socket Location

Posted by Michael Parker <pa...@pobox.com>.
On Thu, Jun 03, 2004 at 10:50:34AM -0400, Chris Faust wrote:
> But I continue to get the error that SA can't connect to MySQL  through socket '/the/wrong/path/here'.
> 
> My local.cf is simply
> 
> user_scores_dsn DBI:mysql:database=spamassassin:host=localhost:mysql_socket=/db0/mysql/mysql.sock
> user_scores_sql_username spamassassin 
> user_scores_sql_password xxxx

perldoc DBD::mysql

Try using a ; (semi-colon) instead of a : (colon) between key/value
pairs.

For instance

user_scores_dsn DBI:mysq:database=spamassassin;host=localhost;mysql_sock=/db0/mysql/mysql.sock

Again, see perldoc DBD::mysql for more info.

Michael