Error when trying to turn on event scheduler - mysql

I want to create an event in phpmyadmin but it said that the event scheduler is disabled. I checked if it's on using SELECT ##event_scheduler; and it's OFF. So i tried to turn it on using the toggle button in phpmyadmin but i get some error #1408 - Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler. and i also tried adding event_scheduler=on on my.cnf but it still didn't work. Is there any other way to make it work?
Btw the xampp is hosted in ubuntu 20.04.

Related

facing issues regarding creation of mysql events

Hi I am facing issues regarding adding mysql events in mysql
even switched on event scheduler status
it shows event created but nothing is been added
i am using mysql phpmyadmin
Events are run by the scheduler, it's not started by default. Using SHOW PROCESSLIST command it is possible to check whether it started or not. if its not started then run the command before your query in phpmyadmin.
SET GLOBAL event_scheduler = ON;
or you can check mysql.cnf file set event_schedler = ON for permanent solution
[mysqld]
event_scheduler = ON

How to fix 'Could not open required defaults file: C:\xampp\mysql\bin\my.ini'

I installed Xampp on my system. when I start Xampp_start.exe, the error as mentioned in the title comes up.
When I start Xampp_control.exe, it opens up and when i start mysql,it shuts down and error comes up.
I have tried to resolve the second issue by checking out all solutions available online including deleting irrelevant files in mysql\data but it still shows the same error.
Error: MySQL shutdown unexpectedly.
This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues If you need more help, copy and post this entire log window on the forums

How to delete entry from sip_regisration table?

We connect freeswitch using odbc connection for device registration on server.
Now the problem occur when Freeswitch crashed,down or restart uncertainly that time the entry does not removed from sip_registration table and next time user are not able to make the call.
Then we have to manually delete that entry from database to make it working.
OS : Debian8
FS version : FreeSWITCH Version 1.6.6~64bit ( 64bit)
can anybody help us to resolve this issue?
The are multiple solutions:
have Nagios/Icinga check your freeswitch (send OPTIONS to 5060). If this fails your freeswitch is down. You can then have Nagios execute a script that cleans up your database.
have a simple (I use python) server listen on freeswitch ESL (Event Socket Layer) and act on (re-)Start events. So if your freeswitch is started, this server will do some things to cleanup your database.
Make some changes to the freeswitch startup script so it will do this housekeeping on startup
have a cronjob every minute or so delete all entries in sip_registration table that are older than the uptime of the freeswitch process.
But, after all, you should focus on why freeswitch crashed. That's your biggest problem, all the other is damage control...

Why will MySQL not run on xampp?

When I tried to run MySQL on Xampp it says this:
Attempting to start MySQL app...
Status change detected: running
Status change detected: stopped
Error: MySQL shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums
I have been looking for an answer for about an hour and nothing has worked. If anybody knows a possible solution please tell me. Thanks!
Try to run xammp in the Administrator mode.

SublimeText(3) plug-in onload event?

I'm trying to develop some plugin for SublimeText3.
The plugin use a node.js server, and I want it keep running as a single instance(service).
So, what I would design the plugin is
to try TCP connect on the plugin load, and
if the connection succeeded and received data, do nothing
if the connection failed, execute the node command to launch the new server instance
However, I cannot find any EventListener for plugin-onload Here
https://www.sublimetext.com/docs/3/api_reference.html
What is the common manner to achieve what I would like to do in SublimeText Plugin??
Please let me know. Thanks.
you can define a function named plugin_loaded, the code inside will be executed when the plugin is loaded
def plugin_loaded():
# your code here