“Directly renaming a database in InfluxDB is not possible, so a common use for
the INTO clause is to move data from one database to another.”
https://docs.influxdata.com/influxdb/v1.2//query_language/data_exploration/
#the-into-clause
Also see Workaround to rename databases
Regards,
Antony.