[csw-users] mysql5 question

Peter Bonivart bonivart at opencsw.org
Wed Feb 1 22:04:52 CET 2012


On Wed, Feb 1, 2012 at 9:59 PM, upen <upendra.gandhi at gmail.com> wrote:
> On Wed, Feb 1, 2012 at 2:49 PM, Peter Bonivart <bonivart at opencsw.org> wrote:
>> On Wed, Feb 1, 2012 at 9:38 PM, upen <upendra.gandhi at gmail.com> wrote:
>>> Hi, I just installed mysql5 using opencsw's pkgutil.
>>>
>>> Mysql is running but I don't know where my.cnf for this installation.
>>> I'd like to add log=/var/opt/csw/mysql5/mysql.log into it to log sql
>>> queries and restart it. Can someone please help?
>>
>> You should put my.cnf in /etc/opt/csw. That's the default conf dir for
>> OpenCSW packages.
>
>
> Thanks Peter. I did /opt/csw/mysql5/my-small.cnf /opt/csw/etc/my.cnf
>  and restated mysql. I added a line in the new cnf file :
> log=/var/opt/csw/mysql5/mysql.log befre restart. However I don't have
> anything in mysql.log, wonder why..I did mysql-u root from other
> terminal and connected to MySQL and ran a few commands.
>
> Makes me wonder if it is really using new cnf file or not.

My guess is it does not. Did you read my post?

/peter


More information about the users mailing list