If userid is your database you might need to try running something like the following SQL on your databse first:
GRANT ALL PRIVILEGES ON userid.* TO ‘<your_user_name_here>’@‘localhost’ WITH GRANT OPTION;
No. AFAIK the identity is not the name. I have not used the database identity I have always used the database name.
We use function id for database, so do we need to add function id in place of database name in the command ?
If I understand you correctly. No you need to use the actual database name. “Grant” is a SQL command.
Can we add above cmd in liquibase Powershell task in azure devops and verify ?
The the user using the “Grant” command needs root or Administrator access to give access to the Liquibase user.
You or your DBA would first have to “GRANT” the access rights “PRIVILEGES” to your Liquibase user.
You can also only grant specific rights or privileges like CREATE ALTER INDEX etc… ALL is a very shotgun approach and would not be advised on a public DB.