MySQL for windows - how to turn on logging to a file??

I have MySQL installed on a windows 2003 server.  I have not used MySQL before, and do not know how to turn on logging to a file.  If I remote in the the server it is installed on, and launch the MySQL Administrator, I do see a section for server logs.  When I enter that section, the right side of the screen is all grayed out.  I'm confused how to proceed.  I want to view (or turn on) any errors that are occurring to troubleshoot an application problem we are having.
Thanks.
LVL 9
sah18Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

adrpoCommented:

If you are connected to MySQL via ODBC, then you can enable ODBC logging:
Control Panel->Administrative Tools->Data Sources->Tracing.

Cheers,
za-k/
0
adrpoCommented:

You could also start the MySQL server with
mysqld --log=drive:\path\to\file
to enable the query logging.

More here:
http://dev.mysql.com/doc/refman/5.0/en/query-log.html

Cheers,
za-k/
0
sah18Author Commented:
I want to turn on logging of errors.  I'm not sure I follow you odbc listing.  I'm directly on the server that MySQL is running on, in the MySQL Administrator software.  To be clearer, I've attached a screenshot of the Server Logging section of the MySQL Administrator that I'm referencing in my question.  See how all the options are grayed out?  How to I enable logging of errors to help troubleshoot an issue we are having??  I just don't see how to turn on error logging.
Thanks again.

ScreenShot001.bmp
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

adrpoCommented:

Hi,

On my computer there is nothing in the Server Logs either in MySQL Administrator.
However, if you go to the directory:
drive:\path\to\mysql\data
You will find a text file called ComputerName.err

All the errors are logged into that file.

Cheers,
za-k/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
adrpoCommented:

Ok, you need to run your server with --log:
http://dev.mysql.com/doc/refman/5.0/en/query-log.html
Open Services on your computer, stop the MySQL server, then run mysqld from the command
line:
mysqld.exe --defaults-file="c:\\bin\\mysql\\my.ini" --log-error --log-warnings --log
Then look into
drive:\path\to\mysql\data
for a file ComputerName.log
In there you will find all the queries send to the server.
More here:
http://dev.mysql.com/doc/refman/5.0/en/query-log.html

Cheers,
za-k/
0
sah18Author Commented:
Thank you for your help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.