Thank You Like - Recount very slow - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Support (https://community.mybb.com/forum-72.html) +---- Thread: Thank You Like - Recount very slow (/thread-239004.html) |
RE: Thank You Like - Recount very slow - lost puppy - 2023-08-22 (2023-08-22, 10:27 AM)Laird Wrote:(2023-08-22, 09:39 AM)lost puppy Wrote:(2023-08-22, 09:14 AM)Laird Wrote: Do you also get an error when you run this (after replacing "YOURPREFIX" with your actual prefix)? On that first query all I get back (in green with a tick) is:
The server states that the DB type in use is MariaDB version 10.6.12 In the tables each has MyISAM as a 'type' as per this image: RE: Thank You Like - Recount very slow - Laird - 2023-08-22 Oh, it's MariaDB rather than MySQL. Unfortunately, I can't find any MariaDB-specific documentation about access rights on the INFORMATION_SCHEMA database. Let's check whether you can at least alter the YOURPREFIX_threads table to add the tyl_tnumtyls column, since we already know it doesn't exist yet. Does this query complete successfully with YOURPREFIX replaced again?
RE: Thank You Like - Recount very slow - lost puppy - 2023-08-22 (2023-08-22, 11:11 AM)Laird Wrote: Oh, it's MariaDB rather than MySQL. Unfortunately, I can't find any MariaDB-specific documentation about access rights on the INFORMATION_SCHEMA database. Yes my friend .... worked perfectly and the column is now in the threads table RE: Thank You Like - Recount very slow - Laird - 2023-08-22 Huh. How peculiar. Do you still get errors now when you rerun the script in full? RE: Thank You Like - Recount very slow - lost puppy - 2023-08-22 (2023-08-22, 11:28 AM)Laird Wrote: Huh. How peculiar. Do you still get errors now when you rerun the script in full? Only the one 'Access Denied' on the creation of tyl_tnumtyls column, query number 5 .... no others now. The same error
RE: Thank You Like - Recount very slow - Laird - 2023-08-22 That's really bizarre. You have permission to alter the table and add the column, but not to check whether the column exists. [Edit: I mean, not via the INFORMATION_SCHEMA table - you seem to be able to perform the check just fine via a SHOW COLUMNS query] RE: Thank You Like - Recount very slow - lost puppy - 2023-08-22 (2023-08-22, 12:13 PM)Laird Wrote: That's really bizarre. You have permission to alter the table and add the column, but not to check whether the column exists. I don't know if this would make a difference but I have 5 different databases on the server and can only look at one at a time (it won't let me even have 2 open in different tabs) ... would it think that I am trying to change them all? I mean with the "INTO @exist" part of that query? RE: Thank You Like - Recount very slow - Laird - 2023-08-22 (2023-08-22, 12:22 PM)lost puppy Wrote: I don't know if this would make a difference but I have 5 different databases on the server and can only look at one at a time (it won't let me even have 2 open in different tabs) ... would it think that I am trying to change them all? That part just assigns the result of the query into the variable @exist , so that it can be referenced later. Let's try to rule that part out as the cause of the error though by reducing the query down to this (same need for prefix replacement):
Does that still generate the error? RE: Thank You Like - Recount very slow - lost puppy - 2023-08-22 (2023-08-22, 12:30 PM)Laird Wrote:(2023-08-22, 12:22 PM)lost puppy Wrote: I don't know if this would make a difference but I have 5 different databases on the server and can only look at one at a time (it won't let me even have 2 open in different tabs) ... would it think that I am trying to change them all? No, that works fine and returns a count of zero << if it is meant to do that?? RE: Thank You Like - Recount very slow - Laird - 2023-08-22 (2023-08-22, 12:36 PM)lost puppy Wrote: No, that works fine and returns a count of zero << if it is meant to do that?? It is meant to return a count of one given that the column now exists. And I was expecting it to generate the same error given that the only change we made was to delete INTO @exist .Let's put that back in again and see whether we get an error this time:
|