I got a apache2 vhost-configuration with BasicAuth. With the AuthDBDUserPWQery directive I'm checking a mariadb in the background, if the user-pw-combination exists. For troubleshooting I want to see the exact query, the apache sends to the db. How do I do that?

Configuration file broken down:

AuthType Basic
AuthName "Secret babledibu"
AuthBasicProvier dbd
AuthDBDUserPWQuery "SELECT password from login where user=%s"

The last line I want to be logged with it's parameters.



Enable the mariadb general query log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.