[asterisk-users] mysql error (err 2002)

Steve Edwards asterisk.org at sedwards.com
Wed Aug 19 10:49:33 CDT 2009


On Wed, 19 Aug 2009, harry R wrote:

>> mysql -uasterisk -pasterisk asteriskdb
>
> When I do that in a linux terminal it works. But I always have this err 
> 2002.

Going out on a shaky limb I know little about...

I always specify all of the connection options in scripts so I don't get 
"caught" by something in some user's my.cnf file. Does:

 	mysql\
 		--database=asteriskdb\
 		--host=localhost\
 		--password=asterisk\
 		--user=asterisk\
 		${END_OF_LIST}

also work?

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list