'Rename mysql database when you have two databases with same name but with different cases

I have two myql databases with same name but with different case like Database_V1 and database_v1 when I'm trying to rename database_v1 to something like database_v1_test I'm getting error. I guess having two databases with same name is causing this issue. Is there a way in mysql to target database based on object id rather than schema name? PS I'm using Dbeaver at the moment for this operation.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source