tags:

views:

68

answers:

2

Hello all,

I use PHP to access MySQL in XAMPP. My question is where I can find the MySQL log file if there is a DB error.

Also, can I change the default location/name of that log file?

Thank you

///// Based on the coments //////

mysql> show variables like '%log_file%';
+---------------------------+------------------------------------+
| Variable_name             | Value                              |
+---------------------------+------------------------------------+
| general_log_file          | C:/xampp/mysql/data/mysql.log      |
| innodb_log_file_size      | 5242880                            |
| innodb_log_files_in_group | 2                                  |
| slow_query_log_file       | C:/xampp/mysql/data/mysql-slow.log |
+---------------------------+------------------------------------+
4 rows in set (0.00 sec)
+1  A: 

If you do

SHOW VARIABLES LIKE '%log_file%';

it will show exactly where they're being written.

Marc B
A: 

go to your xampp root folder /mysql/data/ and trace the bin folder it should be in one of those sun=b folders am sure it is somewhere in there.. Good Luck

Alagiboy