Wenn MySQL mal hängt, kann das an einem intern hängenden Prozess einer Abfrage liegen.
Bei mir z.B. funktionierte die komplette Datenbank; nur die Tabelle customers lies sich nicht mehr Abfragen. SELECT * FROM customers lieferte einfach kein Ergebnis und blieb hängen.
$ mysql --host=localhost --user=xxx --password=xxx -S /tmp/mysql5.sock db
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Dann eben mysql mit -A gestartet und mit SHOW PROCESSLIST nachgeschaut, welcher MySQL interne Prozess da hängt (üblicherweise der erste).
Diesen dann mit kill [id des Prozesses] beenden.
Und dann läuft alles wieder...