Avatar of jm2009
jm2009

asked on 

How to delete data from mysql.slow_log table?

Hello,
How can i delete data from "mysql.slow_log" table without restarting mysql server?

when i try with "delete from mysql.slow_log where start_time > '2011-01-01'"
i got this error: "You can't use locks with log tables."

MySQL Server

Avatar of undefined
Last Comment
Guy Hengel [angelIII / a3]
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jm2009
jm2009

ASKER

I read this article a few times but can't find the solution for delete from table log,
Can you be accurate in some part of it is written?
you cannot DELETE in that table.
you can only cycle the underlying file, and this also only from certain version of mysql.
MySQL Server
MySQL Server

MySQL is an open source, relational database management system that runs as a server providing multi-user access to a number of databases. Acquired by Oracle in 2009, it is frequently used in combination with PHP installations, powering most of the WordPress installations.

49K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo