El Editor de diagramas Dia en mi Ubuntu 14.04 tiene un bug en el campo comentario de las tabas de bases de datos. Lo he podido corregir siguiendo el hilo de este link:
https://bugs.launchpad.net/ubuntu/+source/dia/+bug/1011446
Editar el fichero /usr/bin/dia y dejarlo así:
#!/bin/sh
#
# Wrapped that calls dia in integrated version
#
LIBOVERLAY_SCROLLBAR=0 dia-normal --integrated "$@"
--------
Tambien se puede editar el fichero /usr/share/applications/dia.desktop y modificar la linea Exec para dejarla así:
Exec=env LIBOVERLAY_SCROLLBAR=0 dia %F
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
Sometimes deadlock issues can be caused on the database.
This might happen if you are running a lot of custom scripts and killing the scripts before the database connection gets chance to close
If you login to MySQL from CLI and run the command
SHOW PROCESSLIST;