Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15

Log all SQL errors

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 5.5.22
    • None
    • None

    Description

      quoting http://askmonty.org/worklog/?tid=177

      I want to log all or a sample of errors on the server side into a new log file
      (not general, error or slow query log) and into a file that can be rotated. In the
      facebook patch I added code to sample query errors into the slow query log using -
      -log-sample-error-rate:

      • when 0 do not sample
      • when 1 then log all errors
      • when > 1 then sample 1 of --log-sample-error-rate queries

      This should have:

      • query text
      • username
      • timestamp
      • database
      • errno
      • error text
      • client IP

      The log should support rotation and possibly auto-rotation when it reaches a
      certain size.

      Attachments

        Activity

          People

            holyfoot Alexey Botchkov
            ratzpo Rasmus Johansson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.