Jump to content
  • 0

MySQL Event Scheduler & Base Maintenance


kingpapawawa

Question

4 answers to this question

Recommended Posts

  • 0

@kingpapawawa maybe this old post can help you.

  Reveal hidden contents
  Reveal hidden contents

And the corresponding SQL script is:

  Reveal hidden contents

 

Source:

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 4/12/2017 at 5:02 PM, juandayz said:

@kingpapawawa maybe this old post can help you.

Expand  

This is incomplete, the batch file calls 11 different scripts and only one is included.  But the issue is resolved with the information i provided in the first post.
SET GLOBAL event_scheduler="ON"; ///doing this turns the event scheduler on but restarting the server turns it back off.

Editing my.ini to include "event_scheduler=on" turns it on every time mysqld starts.

 

 

Link to comment
Share on other sites

  • 0
  On 4/13/2017 at 12:11 AM, kingpapawawa said:

This is incomplete, the batch file calls 11 different scripts and only one is included.  But the issue is resolved with the information i provided in the first post.
SET GLOBAL event_scheduler="ON"; ///doing this turns the event scheduler on but restarting the server turns it back off.

Editing my.ini to include "event_scheduler=on" turns it on every time mysqld starts.

 

 

Expand  

yup i have it added in my xamp my.ini

[mysqld]
port= 3306
socket = "C:/xampp/mysql/mysql.sock"
basedir = "C:/xampp/mysql"
tmpdir = "C:/xampp/tmp"
datadir = "C:/xampp/mysql/data"
pid_file = "mysql.pid"
# enable-named-pipe
key_buffer = 16M
max_allowed_packet = 1M
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
log_error = "mysql_error.log"
event_scheduler=ON

Link to comment
Share on other sites

  • 0

anyway using the .bat file you can include the recommended_mysql_events.sql provided by default in epoch files.

  Reveal hidden contents

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...