MySQL Forums
Forum List  »  Newbie

Setting the general log file in my.ini
Posted by: Dean Richert
Date: March 03, 2015 01:19PM

How do I set the general log file in my.ini? I am using XAMP on Windows.

I can do it using this command from the console:
SET GLOBAL general_log_file = "C:/xampp/mysql/data/g_log.log";

But if I set the same thing in my.ini:
general_log = ON
general_log_file = "C:/xampp/mysql/data/g_log.log"

The line
general_log = ON
works
but the second line
general_log_file = "C:/xampp/mysql/data/g_log.log"
is ignored, and whatever setting was set last is what is used.

Options: ReplyQuote


Subject
Written By
Posted
Setting the general log file in my.ini
March 03, 2015 01:19PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.