Clickhouse 安装使用笔记(随记 未整理)()

安装

创建SHA256密码

echo -n 123456 | openssl dgst -sha256
(stdin)= 8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92

尝试用Navicat连接 (失败)

默认连接提示 

Table information_schema.SCHEMATA doesn't exist. (UNKNOWN_TABLE) (version 22.11.1.1360 (official build))

检查发现 information_schema.SCHEMATA 表不存在 schemata表在的  区分大小写。然后手动创建视图

Create view SCHEMATA as select catalog_name as CATALOG_NAME,schema_name as SCHEMA_NAME,schema_owner as SCHEMA_OWNER,default_character_set_catalog as DEFAULT_CHARACTER_SET_CATALOG,default_character_set_schema AS DEFAULT_CHARACTER_SET_SCHEMA,default_character_set_name AS DEFAULT_CHARACTER_SET_NAME,NULL as DEFAULT_COLLATION_NAME,sql_path as SQL_PATH from INFORMATION_SCHEMA.SCHEMATA

数据库能打开 但后续表无法展示 ,提示还是  information_schema 缺表, 暂时放弃

————————

安装

创建SHA256密码

echo -n 123456 | openssl dgst -sha256
(stdin)= 8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92

尝试用Navicat连接 (失败)

默认连接提示 

Table information_schema.SCHEMATA doesn't exist. (UNKNOWN_TABLE) (version 22.11.1.1360 (official build))

检查发现 information_schema.SCHEMATA 表不存在 schemata表在的  区分大小写。然后手动创建视图

Create view SCHEMATA as select catalog_name as CATALOG_NAME,schema_name as SCHEMA_NAME,schema_owner as SCHEMA_OWNER,default_character_set_catalog as DEFAULT_CHARACTER_SET_CATALOG,default_character_set_schema AS DEFAULT_CHARACTER_SET_SCHEMA,default_character_set_name AS DEFAULT_CHARACTER_SET_NAME,NULL as DEFAULT_COLLATION_NAME,sql_path as SQL_PATH from INFORMATION_SCHEMA.SCHEMATA

数据库能打开 但后续表无法展示 ,提示还是  information_schema 缺表, 暂时放弃