I want to check the log in MySQL to see the queries that are being run by my application. How can I do this? I am using XAMPP and the directory to MySQL is C:\\xampp\\mysql.
Its given on OFFICIAL MYSQL website.
SET GLOBAL general_log = 'ON';
You can also use custom path:
[mysqld] # Set Slow Query Log long_query_time = 1 slow_query_log = 1 slow_query_log_file = "C:/slowquery.log" #Set General Log log = "C:/genquery.log"