Events manager in TOAD for MySQL - mysql

Does anybody now how to find and view/browse the existing scheduler events in TOAD for MySQL, or how to find them with SQL as they are really metadata?

I always use SHOW EVENTS to see what the scheduler has up its sleeve for a given schema.
Example:
show events in my_schema;

Related

Scheduling an event not executing

I am testing my mysql database and currently using dbforge IDE. When I create an event, for accessing some values from a table, which is supposed to occur after sometime, but it's not running and I don't get an error either. Please let me know exactly how to schedule an event in dbforge properly. Thanks
By default event scheduler is disabled try check whether it is on or not.
show variables like 'event_scheduler';

I can see some events is running in my mysql database. But I couldn't see the source code. How can I see the event code which is exists in database?

I see two events is running in mysql database. One is once in a day and another once in a hour. I need to get the source code of these two events. How can I get event source code? I need to alter that event. That's why I really need to get the existing event source.
Use the show create event command in mysql to retrieve the sql code run by the event.

DataModelling or ER model building software for MacBook and MYSQL

Hi Friends I have been looking for to build a ER Diagram for my database in Macbook.
Please help me finding a right tool for the same.
I have tried MYSQL Work bench but i need it to be updated dynamically if the DB gets changed.
Also have tried some online stuffs like gliffy.com but of no use.
Please help me I am new to Databases so quick help will be appreciated.
You won't get automatic updates (I understand automatic updates as something that happens in the background without any action from you).
MySQL Workbench however has a two-way sync that you can use to update your models at the same time you update your schema (from the model). You can select to do only one direction, but you have to trigger synchronization yourself.
SchemaCrawler is a free tool that generates diagrams from a database. It is driven from the commandline. You can generate a new diagram quickly, when your database changes, by re-running your command. Here is an example diagram:
Sualeh Fatehi, SchemaCrawler

How to execute SQL queries inside MySQL workbench

I am developing an application using Django framework. As you may know the workflow is you first describe your objects in Python classes and then you synchronize the database.
I made a MySQL Workbench EER diagram. Since then I continued to develop the application, so the database model is not updated in the EER diagram nor the MySQL Workbench model.
I tried to synchronize it using the built-in feature "Synchronize with Any Source" of MySQL Workbench, but this feature is not working for some reason and causes a segmentation fault. The queries to be executed inside the MySQL Workbench model are displayed but at the last step I get an empty SQL alter script. I tried manually copying the queries in that script and clicking the "Execute" button, but I had no luck with that. I think MySQL stores queries internally. Anyway. I submitted the bug to MySQL Workbench developers here and now it is fixed, but not yet released. I am now looking for a workaround while waiting for the next release.
Although I have a specific problem, the question remains generic.
Is it possible to execute queries on the MySQL Workbench model in order to alter it?
Did you try the "Forward Engineer" option? It allows you to reflect all the changes that were made to your table relations directly to the database which is a pretty useful functionality.
There are some catches though like the inability to maintain existing data every time forward engineering is performed however this can be compensated by entering some example data which will be shipped with the ER diagram the next time you perform "Forward engineer".

Find out what application is writing to SQL table and when

Is there anyway to audit a SQL table where you can get information such as what application is writing to it and when it writes to it?
There are a bunch of applications users are using here and I have combed through each on and cannot find where any of them write to this one table in SQL Server. And it's an important table.
It's driving me crazy.
You have to set up auditing from the start (usually through triggers that write to audit tables that include the user or application that is writing to the table). There is no way to find this information for past data if you did not have auditing designed into your system.
When you set up the audtitables you might want to include fields that are populated by these system variables:
suser_sname(),
host_name(),
app_name(),
getdate()
If you know the exact time it is happening you can catch them in the act using sp_who2 or sp_whoisactive type procedures that return lots of useful information about currently running processes.
However, it sounds like you cannot foresee this activity so I would suggest running a SQL Profiler trace and filter on the database and table in question. Be sure to capture the events that will help you finger the responsible party (LoginName, HostName, etc.). There are countless articles on the Net that walk you through a simple trace.