Skip to content
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

e.displayText() = DB::Exception: Access denied to database default for user dataout_user #10

Open
zhougit86 opened this issue Apr 20, 2020 · 1 comment

Comments

@zhougit86
Copy link

在导数据的时候指定了一个库xxx,但是执行时出现报错
Caused by: ru.yandex.clickhouse.except.ClickHouseException: ClickHouse exception, code: 291, host: 10.68.200.228, port: 8123; Code: 291, e.displayText() = DB::Exception: Access denied to database default for user dataout_user (versi
on 19.17.3.7 (official build))

    at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:58)
    at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:28)
    at ru.yandex.clickhouse.ClickHouseStatementImpl.checkForErrorAndThrow(ClickHouseStatementImpl.java:680)
    at ru.yandex.clickhouse.ClickHouseStatementImpl.getInputStream(ClickHouseStatementImpl.java:512)
    at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:105)
    at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:89)
    at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:85)
    at ru.yandex.clickhouse.ClickHouseConnectionImpl.initTimeZone(ClickHouseConnectionImpl.java:86)

很奇怪为何这个select timezone()会去访问到default库,登陆到数据库上执行select timezone()也没有问题,有大佬指点下吗?

@jaykelin
Copy link
Owner

发一下完整的执行脚本

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

No branches or pull requests

2 participants