-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archive tables never purged #4
Comments
Hey @mansj happy to hear you're finding this useful! The problem seems very weird! Can you try running the following query with the parameters you pass to docsql:
(you'll need I suspect no tables are found here, thus they don't get deleted. |
Thank you. I see a problem with the SQL you sent. There's a double '%' in the middle, right?
If I change that on my end when running the query manually (also omitting the OFFSET and the table_schema, which I don't know what needs to be filled in) the result works. |
The double Schema is the name of your database, offset is the number of tables you want to preserve. |
I see. In that case, the line seems to work as it is, because it returns all the archive tables, at the moment 117 of them in my database. Here's the full line I'm running now:
|
I also attempted to manually issue a "DROP TABLE" command as the user in question, and managed to drop an archive table no problem. |
Hi there, first of all - thank you so much for developing this software, it was exactly what I was looking for, and works like a charm.
I can't seem to get the archived tables to be deleted. I've experimented with different settings for -k (--keep) but none are deleted, even though command-line output seems to claim it is doing so:
2019/03/20 16:06:05 Connecting to MySQL... 2019/03/20 16:06:05 Clearing old tables... 2019/03/20 16:06:05 All done
The user has DROP privileges.
The text was updated successfully, but these errors were encountered: