Influxdb: [feature request] RENAME DATABASE

Created on 17 Sep 2015  路  17Comments  路  Source: influxdata/influxdb

From https://github.com/influxdb/influxdb/issues/828#issuecomment-83224779

e.g. RENAME DATABASE foo TO bar

Would also need to update all relevant CQs.

1.x kinfeature-request proposed

Most helpful comment

I'm also interested in this

All 17 comments

From discussion on https://github.com/influxdb/influxdb/pull/4291, will use this syntax:
ALTER DATABASE name RENAME TO new_name

Looks like this is now merged. Closing.

Jack, I believe the merge was reverted. @otoolep what's the status of ALTER DATABASE?

I believe we decided that we may add an alias method, but likely not an alter or rename.

The feature was reverted, a person in the community may submit a new patch at a later date, but no work planned by us right now.

Sorry about that! Thanks for the catch @beckettsean

Is there a workaround for this? Such as:

  • Stop Influx DB
  • Rename database and wal folder to reflect the new name of the database
  • Start Influx DB

I guess it will not work, as it looks like meta/meta.db contains some references to my database?

@hpbieker do you find some command for rename a database?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Still interested in this.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Still interested in this.

Yeah, would love and need this feature for db migrations we do quite often.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Still interested in this.

I'm also interested in this

I am also interested in this feature. Rename comes in handy for migration

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srfraser picture srfraser  路  90Comments

corylanou picture corylanou  路  42Comments

phemmer picture phemmer  路  60Comments

TechniclabErdmann picture TechniclabErdmann  路  80Comments

toddboom picture toddboom  路  69Comments