I’ve recently inherited support for some memSQL/Singlestore databases.
I have a request to copy the users and permissions from one cluster to another. I would like to extract the users and permissions from the source into a script and run that script in the second cluster.
I know the "SHOW " commands but I have to paste the output into a text editor and combine the different pieces and I have several users to do, so thats not a great option.
Surely there is a way to extract the commands to create a user & do the necessary grants for that user ?
Can anyone point me to any such script (or script library?)