Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code DEF204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.

Rechercher dans le manuel MySQL

26.12.17.11 Error Summary Tables

The Performance Schema maintains summary tables for aggregating statistical information about server errors (and warnings). For a list of server errors, see Section B.3.1, “Server Error Message Reference”.

Collection of error information is controlled by the error instrument, which is enabled by default. Timing information is not collected.

Each error summary table has three columns that identify the error:

  • ERROR_NUMBER is the numeric error value. The value is unique.

  • ERROR_NAME is the symbolic error name corresponding to the ERROR_NUMBER value. The value is unique.

  • SQLSTATE is the SQLSTATE value corresponding to the ERROR_NUMBER value. The value is not necessarily unique.

For example, if ERROR_NUMBER is 1050, ERROR_NAME is ER_TABLE_EXISTS_ERROR and SQLSTATE is 42S01.

Example error event summary information:

  1. mysql> SELECT *
  2.        FROM performance_schema.events_errors_summary_global_by_error
  3.        WHERE SUM_ERROR_RAISED <> 0\G
  4. *************************** 1. row ***************************
  5.      ERROR_NUMBER: 1064
  6.        ERROR_NAME: ER_PARSE_ERROR
  7.         SQL_STATE: 42000
  8.  SUM_ERROR_RAISED: 1
  9. SUM_ERROR_HANDLED: 0
  10.        FIRST_SEEN: 2016-06-28 07:34:02
  11.         LAST_SEEN: 2016-06-28 07:34:02
  12. *************************** 2. row ***************************
  13.      ERROR_NUMBER: 1146
  14.        ERROR_NAME: ER_NO_SUCH_TABLE
  15.         SQL_STATE: 42S02
  16.  SUM_ERROR_RAISED: 2
  17. SUM_ERROR_HANDLED: 0
  18.        FIRST_SEEN: 2016-06-28 07:34:05
  19.         LAST_SEEN: 2016-06-28 07:36:18
  20. *************************** 3. row ***************************
  21.      ERROR_NUMBER: 1317
  22.        ERROR_NAME: ER_QUERY_INTERRUPTED
  23.         SQL_STATE: 70100
  24.  SUM_ERROR_RAISED: 1
  25. SUM_ERROR_HANDLED: 0
  26.        FIRST_SEEN: 2016-06-28 11:01:49
  27.         LAST_SEEN: 2016-06-28 11:01:49

Each error summary table has one or more grouping columns to indicate how the table aggregates errors:

Each error summary table has these summary columns containing aggregated values:

  • SUM_ERROR_RAISED

    This column aggregates the number of times the error occurred.

  • SUM_ERROR_HANDLED

    This column aggregates the number of times the error was handled by an SQL exception handler.

  • FIRST_SEEN, LAST_SEEN

    Timestamp indicating when the error was first seen and most recently seen.

A NULL row in each error summary table is used to aggregate statistics for all errors that lie out of range of the instrumented errors. For example, if MySQL Server errors lie in the range from M to N and an error is raised with number Q not in that range, the error is aggregated in the NULL row. The NULL row is the row with ERROR_NUMBER=0, ERROR_NAME=NULL, and SQLSTATE=NULL.

The error summary tables have these indexes:

TRUNCATE TABLE is permitted for error summary tables. It has these effects:

  • For summary tables not aggregated by account, host, or user, truncation resets the summary columns to zero or NULL rather than removing rows.

  • For summary tables aggregated by account, host, or user, truncation removes rows for accounts, hosts, or users with no connections, and resets the summary columns to zero or NULL for the remaining rows.

In addition, each error summary table that is aggregated by account, host, user, or thread is implicitly truncated by truncation of the connection table on which it depends, or truncation of events_errors_summary_global_by_error. For details, see Section 26.12.8, “Performance Schema Connection Tables”.


Suchen Sie im MySQL-Handbuch

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 26/06/2006, zuletzt geändert 26/10/2018
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/mysql-rf-error-summary-tables.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:en Manuel MySQL : https://dev.mysql.com/

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut