The location of the PHPMyAdmin log file
The PHPMyAdmin log file is placed in the following directory by default:
/var /log/phpmyadmin
C:\xampp\phpMyAdmin\logs\
##Purpose of log files
The log file records PHPMyAdmin activities, including user login information, database operations, error and warning messages. These files can be used to:Accessing the log file
or
vi) Open the
phpmyadmin.logfile.
file.
Log file format
PHPMyAdmin’s log file records events using the following format:Timestamp | User | Action | Database/Table | Message
,
Insert, or
Delete.
Enable logging
By default, logging for PHPMyAdmin is disabled. To enable it, edit theconfig.inc.phpfile and add the following line:
$cfg['PmaAbsoluteLogDir'] = '/var/log/phpmyadmin'; //Linux/Unix/macOS // $cfg['PmaAbsoluteLogDir'] = 'C:\xampp\phpMyAdmin\logs\'; //Windows
$cfg['EnableQueryLog']to
true:
$cfg['EnableQueryLog'] = true;
The above is the detailed content of Where is the phpmyadmin log?. For more information, please follow other related articles on the PHP Chinese website!