I tried to reproduce this on my end by creating the same number of tables. Here is an example of my create table statement:
create table TEST1(
I created 239 of these, and then ran the grant all privileges statement:
grant all on table test.* to user1
This was my output:
root@:26257/test> grant all on table test.* to user1;
Could you try reproducing this? However before you do can you set tracing to on. If you are unsure how to do that, you can take a look at the docs here. That would give us a better idea of what might be happening.