2021/12/15 10:18:46 warn can't create table 'INFORMATION_SCHEMA.SCHEMATA': code: 80, message: Incorrect ATTACH TABLE query for Atomic database engine. Use one of the following queries instead:
ATTACH TABLE SCHEMATA;
CREATE TABLE SCHEMATA
;
ATTACH TABLE SCHEMATA FROM '/path/to/data/'
;
ATTACH TABLE SCHEMATA UUID ''
;, will try again backup=v122-backup operation=restore
2021/12/15 10:18:46 warn can't create table 'INFORMATION_SCHEMA.VIEWS': code: 80, message: Incorrect ATTACH TABLE query for Atomic database engine. Use one of the following queries instead:
ATTACH TABLE VIEWS;
CREATE TABLE VIEWS
;
ATTACH TABLE VIEWS FROM '/path/to/data/'
;
ATTACH TABLE VIEWS UUID ''
;, will try again backup=v122-backup operation=restore
+++++++++++++++++++++++++++++++++++++++++++++++++
Any fix for this ? Appreciated your help on this ..
INFORMATION_SCHEMA (information_schema) is a system database that contains views
==> If we skip, will that impact my system views ? Hence it's a partial data
These views read data from the columns of the system.columns, system.databases and system.tables system tables.
==> Any issues with tables and schema's, after we skip INFORMATION_SCHEMA ?
If you can answer, that helps in understanding more on INFORMATION_SCHEMA.
INFORMATION_SCHEMA (information_schema) is a system database that contains views
==> If we skip, will that impact my system views ? Hence it's a partial data
No, it creates on every clickhouse-server start
and it should be skipped during backup
we store SHOW CREATE TABLE metadata for all talbes which backuped
Hi Alex,
OS version :CentOS Linux release 7.6 (Core)
ClickHouse version: ClickhouseDB version 2.11
Backup tool version: v1.2.2 from the release versions: https://github.com/AlexAkulov/clickhouse-backup/releases .
Able to take the Clickhouse data backup and restore it.
But getting the following Error message while restoring the Clickhouse backup.
++++++++++++++++++++++++++++++++++++++++++++++++++++++
2021/12/15 10:18:46 warn can't create table 'INFORMATION_SCHEMA.SCHEMATA': code: 80, message: Incorrect ATTACH TABLE query for Atomic database engine. Use one of the following queries instead:
2021/12/15 10:18:46 warn can't create table 'INFORMATION_SCHEMA.VIEWS': code: 80, message: Incorrect ATTACH TABLE query for Atomic database engine. Use one of the following queries instead:
Any fix for this ? Appreciated your help on this ..
Thanks in advance !!!.
Please add to config.yaml
or use
CLICKHOUSE_SKIP_TABLES=system.*,INFORMATION_SCHEMA.*,information_schema.*
environment variableThanks for the quick reply...
Few queries after referring to the documentation: https://clickhouse.com/docs/en/operations/system-tables/information_schema/ ...
If you can answer, that helps in understanding more on INFORMATION_SCHEMA.
No, it creates on every clickhouse-server start and it should be skipped during backup we store
SHOW CREATE TABLE
metadata for all talbes which backupedIt worked !!!. Thanks a lot ...