Skip to content

ERR: Cannot use a database that exists #12475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
santakd opened this issue Mar 9, 2019 · 5 comments
Closed

ERR: Cannot use a database that exists #12475

santakd opened this issue Mar 9, 2019 · 5 comments
Labels

Comments

@santakd
Copy link

santakd commented Mar 9, 2019

Connected to http://localhost:8086 version 1.7.3
InfluxDB shell version: 1.7.3
Enter an InfluxQL query

show databases
name: databases
name


_internal
telegraf
jmeter
micrometer
locust
collectd

use database collectd
ERR: Database database collectd doesn't exist. Run SHOW DATABASES for a list of existing databases.
DB does not exist!
use database locust
ERR: Database database locust doesn't exist. Run SHOW DATABASES for a list of existing databases.
DB does not exist!

@santakd
Copy link
Author

santakd commented Mar 9, 2019

#2258

@vspinu
Copy link

vspinu commented Jul 7, 2019

Same here with the default config on ubuntu linux with CLI:

Linux 4.18.0-25-generic x86_64
InfluxDB v1.7.6 (git: 1.7 01c8dd416270f424ab0c40f9291e269ac6921964)
~$ influx
Connected to http://localhost:8086 version 1.7.6
InfluxDB shell version: 1.7.6
Enter an InfluxQL query
> show databases
name: databases
name
----
_internal
forex
test1
test2
INFLUXDBRTEST
> use database test1
ERR: Database database test1 doesn't exist. Run SHOW DATABASES for a list of existing databases.
DB does not exist!

@stale
Copy link

stale bot commented Oct 5, 2019

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.

@stale stale bot added the wontfix label Oct 5, 2019
@stale
Copy link

stale bot commented Oct 12, 2019

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

@stale stale bot closed this as completed Oct 12, 2019
@andi20002000
Copy link

Hi if anyone stumbles across this error, the solution is the following command:
SHOW DATABASES
choose the name you need for example telegraf and then select it:
USE telegraf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants