If we use sql command DELIMITER in sql query phpmyadmin never ending, probably infinite cycle, 100% procesor load.
Win XP SP3, Apache 2.2, PHP 5.2.6, Mysql 5.1.31
FreeBSD, Apache 2.2, PHP 5.2.7, Mysql 5.1.29
Example:
DELIMITER $$
DROP TRIGGER /*!50032 IF EXISTS */ `svn`.`fakt_vydane_typ_insert`$$
CREATE
/*!50017 DEFINER = 'root'@'localhost' */
TRIGGER `fakt_vydane_typ_insert` AFTER INSERT ON `fakt_vydane_typ`
FOR EACH ROW BEGIN
INSERT INTO action_log (tabulka,id,akce,user,datum) VALUES ('fakt_vydane_typ',NEW.ID,'I',NEW.id_user,NOW());
END;
$$
DELIMITER ;
Confirmed. But DELIMITER is not a SQL command, it's a keyword used in the "mysql" command-line client. We tried to handle it in the query box too but in this case it fails. Meanwhile, use the "Delimiter" option just under the query box.
Ok, I agree with you. But there is a problem, when I export database with triggers in phpMyAdmin and try to import it. It's impossible:( I have an idea, add parameter for export without triggers and possibility to export only triggers. Because of in other cases are table's structures mixed with triggers and using Demiliter under query box is impossible...
It's not always impossible to export and reimport a .sql file which contains trigger definitions: I have at least one case where it works correctly.
So it's just a matter to find this particular bug and I'm working on it.
The problem is caused by the logic expecting a newline after the last semi-colon.
Fixed in subversion, thanks for reporting.
The fix is not good, reverting it.
New fix should be correct.