Logging Logins and Operations (general query log) setting for # in /etc/my.cnf or my.ini (Windows)
# in /etc/my.cnf or my.ini (Windows) [mysqld] log