server options

I added |log-slow-queries |to my my.ini file.
So now it says

#
[client]

port=3306

[mysql]

default-character-set=latin1
log-slow-queries

#
when I try to log into the server I get this:
C:>mysql -u myUserName -p
mysql: unknown option '--log-slow-queries'

I thought this was what the documentation said to do, but it was rather
hard to understand (or, maybe I'm just braindead right now. That's
possible.)


||Thanks for any help.
Joelle


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=gcdmw-win32 [at] m.gmane.org
Joelle Tegwen [ Mi, 08 März 2006 23:17 ] [ ID #1219977 ]

Re: server options

Try:

log-slow-queries=ON

You will probably want to set a value for "slow query log" as well.

Randy Clamons
Systems Programming
randy [at] novaspace.com


Joelle Tegwen wrote:
> I added |log-slow-queries |to my my.ini file.
> So now it says
>
> #
> [client]
>
> port=3306
>
> [mysql]
>
> default-character-set=latin1
> log-slow-queries
>
> #
> when I try to log into the server I get this:
> C:>mysql -u myUserName -p
> mysql: unknown option '--log-slow-queries'
>
> I thought this was what the documentation said to do, but it was rather
> hard to understand (or, maybe I'm just braindead right now. That's
> possible.)
>
>
> ||Thanks for any help.
> Joelle
>
>

--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=gcdmw-win32 [at] m.gmane.org
Randy Clamons [ Mi, 08 März 2006 23:43 ] [ ID #1219978 ]

RE: server options

That option is for mysqld not mysql. I think that may be your problem.
Include it in your options file under [mysqld] not [mysql]. I think you
will need to restart your server for this to take effect.

John B.

-----Original Message-----
From: Joelle Tegwen [mailto:tegwe002 [at] umn.edu]
Sent: Thursday, 9 March 2006 8:47 AM
To: MySQL - Win32
Subject: server options

I added |log-slow-queries |to my my.ini file.
So now it says

#
[client]

port=3D3306

[mysql]

default-character-set=3Dlatin1
log-slow-queries

#
when I try to log into the server I get this:
C:>mysql -u myUserName -p
mysql: unknown option '--log-slow-queries'

I thought this was what the documentation said to do, but it was rather
hard to understand (or, maybe I'm just braindead right now. That's
possible.)


||Thanks for any help.
Joelle



--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32 [at] m.gmane.org
jbonnett [ Do, 09 März 2006 00:25 ] [ ID #1219979 ]

RE: server options

Without being 100% sure I think, that the section [mysql] should be =
renamed to [mysqld]

also you might want to set the variable "long_query_time =3D <num =
seconds>"

/jesper

-----Original Message-----
From: Joelle Tegwen [mailto:tegwe002 [at] umn.edu]
Sent: 8. marts 2006 23:17
To: MySQL - Win32
Subject: server options


I added |log-slow-queries |to my my.ini file.
So now it says

#
[client]

port=3D3306

[mysql]

default-character-set=3Dlatin1
log-slow-queries

#
when I try to log into the server I get this:
C:>mysql -u myUserName -p
mysql: unknown option '--log-slow-queries'

I thought this was what the documentation said to do, but it was rather
hard to understand (or, maybe I'm just braindead right now. That's
possible.)


||Thanks for any help.
Joelle


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Djhn [at] rtx.dk


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32 [at] m.gmane.org
JHN [ Do, 09 März 2006 07:47 ] [ ID #1221884 ]

Re: server options

I've seen reference to this, but I really have no idea how long a query
should take to run. What is a reasonable time?
Joelle <-- totally new and clueless about all of this stuff.

Jesper Hørup wrote:
> Without being 100% sure I think, that the section [mysql] should be renamed to [mysqld]
>
> also you might want to set the variable "long_query_time = <num seconds>"
>
> /jesper
>
> -----Original Message-----
> From: Joelle Tegwen [mailto:tegwe002 [at] umn.edu]
> Sent: 8. marts 2006 23:17
> To: MySQL - Win32
> Subject: server options
>
>
> I added |log-slow-queries |to my my.ini file.
> So now it says
>
> #
> [client]
>
> port=3306
>
> [mysql]
>
> default-character-set=latin1
> log-slow-queries
>
> #
> when I try to log into the server I get this:
> C:>mysql -u myUserName -p
> mysql: unknown option '--log-slow-queries'
>
> I thought this was what the documentation said to do, but it was rather
> hard to understand (or, maybe I'm just braindead right now. That's
> possible.)
>
>
> ||Thanks for any help.
> Joelle
>
>
>


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=gcdmw-win32 [at] m.gmane.org
Joelle Tegwen [ Do, 09 März 2006 16:36 ] [ ID #1221886 ]
Datenbanken » gmane.comp.db.mysql.windows » server options

Vorheriges Thema: Fw: Install 5.5 Assistance Needed
Nächstes Thema: MySQL on 64bit