Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mysql logs only for one database

Tags:

logging

mysql

Hot to configure mysql to log information, only for specific database or table?

For example i need to log authentification requests from Postfix to mysql.

Thanks ;)

like image 811
Somebody Avatar asked Jun 28 '26 10:06

Somebody


1 Answers

You can use the MySQL query log for this. It can only be activated for the whole MySQL server and not only a specific table or database but you can use the standard UNIX command line tools like grep to get the specific information you want out of the log file.

like image 124
joschi Avatar answered Jul 01 '26 01:07

joschi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!