Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Select-Traching von MySQL

Empfohlene Antworten

Veröffentlicht

Hi.

Ich habe eine MySQL-DB + PhpMyAdmin am laufen.

Jetzt würde ich gerne die Zugriffe loggen, die auf diese DB laufen, allerdings geht es mir primär um die SELECT-Queries.

Ich habe zwar die Tracking-Funktion in PhpMyAdmin gesehen, dort gibt es aber eher die Create-Statements zum überwachen, nicht die SELECE-Statements.

Gibt's da nen Weg? Würde gerne zusätzlich zu dem Zugriff an sich auch die IP des zugreifers sehen, aber hauptsache ist, DASS ich den zugriff irgendwo sehe.

Ne Idee? :/

LG XspYroX

  • Autor

Hab die Lösung jetzt doch selbst gefunden:

MySQL :: MySQL 5.1 Reference Manual :: 5.2.3 The General Query Log

Lösung:

In der My.ini folgende Änderungen vornehmen:

[mysqld]

# Set Slow Query Log

long_query_time = 1

slow_query_log = 1

slow_query_log_file = "C:/slowquery.log"

#Set General Log

log = "C:/genquery.log"

Schon werden die Queries geloggt, wenn man jetzt auch pro query ca. 20 Zeilen als eintrag hat. Aber solange man nur stichprobenartige zugriffe prüfen will, reicht das völlig aus :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.