Skip to content
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

DB Error: "Index post-tag is corrupted" #12668

Closed
tek-aevl opened this issue Jan 14, 2023 · 12 comments
Closed

DB Error: "Index post-tag is corrupted" #12668

tek-aevl opened this issue Jan 14, 2023 · 12 comments

Comments

@tek-aevl
Copy link

tek-aevl commented Jan 14, 2023

DB Error,

Index post-tag is corrupted

would turning it ("#tags") off and on again fix this it? LOL

@AlfredSK
Copy link

That's a very vague issue description. I can only guess that an index of that table is damaged.

If so, you can recreate the index by optimizing the table.

mysqloptimize dbname tablename

@MrPetovan MrPetovan changed the title Some issues, lead to to this issue. DB Error: "Index post-tag is corrupted" Jan 14, 2023
@tek-aevl
Copy link
Author

Well, I attempted to do this, but I guess I am not sure how to via, shell...

@tek-aevl
Copy link
Author

In mysql, or from cli?

@MrPetovan
Copy link
Collaborator

I think it is a CLI command. You may have to provide your database credentials by using the additional arguments -u <username> -p.

What is the original error message in full?

@tek-aevl
Copy link
Author

tek-aevl commented Jan 15, 2023

I got this>
``SELECT cid FROM `post-tag` WHERE (`cid` =
This is in many of the DBerror logs, with a different ^ number, same limit of 1.

I thought I posted this yesterday, but it didn't post. I have many things going on, all at once, so sorry for the delay's.

@MrPetovan
Copy link
Collaborator

MrPetovan commented Jan 15, 2023

So from the MySQL console:
> OPTIMIZE `post-tag`;

From the command line:
$ mysqloptimize -u <username> -p <database> "post-tag"

@schmaker
Copy link

I can confirm it happened to me too. MariaDB optimize command fixed the issue.

@tek-aevl
Copy link
Author

tek-aevl commented Jan 17, 2023

I am not seeing this error anymore, however I think my search for tags is now broken.

@tek-aevl
Copy link
Author

tek-aevl commented Jan 18, 2023

So from the MySQL console: > OPTIMIZE `post-tag`;

From the command line: $ mysqloptimize -u <username> -p <database> 'post-tag'`

Seems to be working.
But this from the MySQL console: > OPTIMIZE TABLE 'post-tag';
to be exact.

@tek-aevl
Copy link
Author

Aww, Found this again!!!

@tek-aevl
Copy link
Author

Fixed.

@tek-aevl
Copy link
Author

tek-aevl commented Jun 9, 2023

Thanks So much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants