Home >Database >phpMyAdmin >Where is the phpmyadmin log?
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.log file.
file.
Log file format
PHPMyAdmin’s log file records events using the following format:<code>Timestamp | User | Action | Database/Table | Message</code>
,
Insert, or
Delete.
Enable logging
By default, logging for PHPMyAdmin is disabled. To enable it, edit theconfig.inc.php file and add the following line:
<code class="php">$cfg['PmaAbsoluteLogDir'] = '/var/log/phpmyadmin'; //Linux/Unix/macOS // $cfg['PmaAbsoluteLogDir'] = 'C:\xampp\phpMyAdmin\logs\'; //Windows</code>Then set
$cfg['EnableQueryLog'] to
true:
<code class="php">$cfg['EnableQueryLog'] = true;</code>Save the file and restart PHPMyAdmin to apply the changes.
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!