Cannot successfully create events
| User, date | Message |
|---|---|
|
Written by mcf
1 year ago Category: Running SQL scripts 8 posts since Thu, 15 Dec 11 |
Steps to reproduce: 1) Right click database 2) Create new > event 3) Enter query in Execution Body 4) Set schedule (run once) in Timing Tab 5) Click Save button The log shows the following message: /* Table node "event_name_goes_here" not found in tree. */ I cannot find record of the event anywhere, either in the HeidiSQL hierarchy or using SHOW EVENTS. Thoughts? Solutions? Please help! |
|
Written by ansgar
1 year ago 3958 posts since Fri, 07 Apr 06 |
Didn't you receive some error message? |
|
Written by mcf
1 year ago 8 posts since Thu, 15 Dec 11 |
No error message or dialog box is displayed after I click the Save button. Here is what the log shows:
Copy and pasting the create code returns an error dialog box though: SQL Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near " at line 8 . This error is not correct, the syntax is by-the-book -- no missing semi-colons, etc. |
|
Written by ansgar
1 year ago 3958 posts since Fri, 07 Apr 06 |
Hehe, you were kidding yourself: The event was created, but then auto-deleted, due to the "ON COMPLETION NOT PRESERVE" clause. That means the event is deleted by the server automatically after it has finished its (last) execution. |
|
Written by mcf
1 year ago 8 posts since Thu, 15 Dec 11 |
I am pretty sure the event never ran though. It takes ~40 minutes to run all the queries. I'll try it without that clause though and report back. |
|
Written by mcf
1 year ago 8 posts since Thu, 15 Dec 11 |
Okay, halfway there... when I unchecked the box it creates the event but it does not run. When I query SHOW EVENTS, it returns a row for the event but status = DISABLED. In the create event window I unchecked "drop event after expiration" but made just the "enabled" radio button was checked under State. What am I missing? |
|
Written by mcf
1 year ago 8 posts since Thu, 15 Dec 11 |
This may be relevant - I am running this all on a slave server. Some of the MySQL forums mention this issue. |
|
Written by mcf
1 year ago 8 posts since Thu, 15 Dec 11 |
Anse - any thoughts? |
|
Written by ansgar
1 year ago 3958 posts since Fri, 07 Apr 06 |
Oh, I cannot reproduce that here. I create an event with - an unchecked "Drop..." checkbox - state=enabled and the event shows up quickly after having clicked "save". There's a good chance that there is some side effect with your slave server setup. Which HeidiSQL revision? |
|
Written by mcf
1 year ago 8 posts since Thu, 15 Dec 11 |
Version 6.0.0.3603 |
|
Written by ansgar
1 year ago 3958 posts since Fri, 07 Apr 06 |
Well this is the 6.0 release. You should upgrade to the latest build. I can't recall some major change in the event editor but I may be missing something within the 400 commits since r3603. |
|
Written by mcf
1 year ago 8 posts since Thu, 15 Dec 11 |
Updated to the latest release and now receive an error when connecting. Bug report:
|
|
Written by ansgar
1 year ago 3958 posts since Fri, 07 Apr 06 |
Should be fixed in r3991 - please update again. |
|
Please login to leave a reply, or register at first. |