Influxdb Move Copy data between databases within Influxdb

只愿长相守 提交于 2020-06-01 03:00:28

问题


I have my_db1, my_db2, my_db3 in Influxdb, now is there a way to move or copy data between these databases with a query?


回答1:


InfluxQL provides an INTO clause that can be used to copy data between databases.

For example, if I had the point cpu,host=server1 value=100 123 in db_1 and wanted to copy that data to the point new_cpu,host=server1 value=100 123 in db_2. I could issue the following query:

SELECT * INTO db_2..new_cpu FROM db_1..cpu group by *

For more information, see the documentation



来源:https://stackoverflow.com/questions/36949620/influxdb-move-copy-data-between-databases-within-influxdb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!