phpmyadmin hängt beim Zugriff auf VIEW

Und alles was mit phpMyAdmin seine Verwandtschaft findet hat hier seinen Platz.

phpmyadmin hängt beim Zugriff auf VIEW

Postby BadTrip » 03. June 2022 13:17

[Deutsch]
Ich habe gerade versucht, aus einem komplexerem QUERY ein VIEW zu machen, leider scheint phpmyadmin mit diesem VIEW nicht klar zu kommen und hängt sich immer auf, wenn ich darauf zugreife.

Das Query benötigt ungefähr 0.017 Sekunden mit PHP und hat ~50 Zeilen mit ~80 Spalten. Ich kann auch mit PHP problemlos auf das VIEW zugreifen mit ähnlicher Zeit. Klick ich jedoch im phpmadmin auf das VIEW oder geb einfach nur ein "select * from view_name" hängt sich phpmyadmin auf bis es nach der max_execution_time von 300 sekunden abbricht. Der SQL-Server hat währenddessen dauerhaft CPU-Auslastung (etwas weniger als ein Kern unter Maximal-Last hätte). Restart des Browsers, Apache, SQL-Servers, deaktivierung von XDEBUG wurde natürlich probiert, jedoch ohne besseres Ergebnis.

Manchmal schafft er es auch innerhalb der 300s, dann zeigt phpmyadmin an, dass die Abfrage nur "0.0x" sekunden dauerte, aber irgendwie waren es Minuten.

Weiß jemand, woran das liegen könnte und wie ich das Problem löse? Eigentlich sollte das VIEW auf einen Server mit älterer Version, wäre doof, wenn es den Server lahmlegen würde, sobald da einer im phpmyadmin rumklickt.

[English]
I tried to create a VIEW out of a query but it seems, that phpmyadmin has some problems with this VIEW and always freezes, when I access the VIEW with phpmyadmin.

The execution time of this query is about 0.017s and it contains about 50 rows and 80 columns. I can also easily access this VIEW with PHP in similar time. But if I click on this view in phpmyadmin or simply enter "SELECT * FROM view_name", phpmyadmin gets stuck and stops after reaching the max execution time of 300 seconds. While this 300s the mysql process has constant cpu usage (a bit lower than full usage of one core). Restarting browser, apache, sql-server or deactivating XDEBUG did not help.

Sometimes it manages to display the view before timeout, then it also displays an execution time of 0.0x seconds, but in real it was some minutes.

Does anyone knows what the problem is? I'm planning to create this VIEW on another server with an older version of phpmyadmin and it wouldn't be good if it kills the server whenever someone is using phpmyadmin there.

Version: ApacheFriends XAMPP Version 8.1.4
+ Apache 2.4.52
+ MariaDB 10.4.24
+ PHP 8.1.4 (VS16 X86 64bit thread safe) + PEAR
+ phpMyAdmin 5.1.3
BadTrip
 
Posts: 2
Joined: 11. April 2012 12:36
Operating System: Win 7 Pro x64

Return to phpMyAdmin

Who is online

Users browsing this forum: No registered users and 9 guests