Rename an InfluxDB database?

That isn’t directly supported today. See the steps to achieve what you are asking about here:

See example 1.

This was also asked here: Workaround to rename databases