mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
14 lines
580 B
MySQL
14 lines
580 B
MySQL
|
-- Tags: no-parallel
|
||
|
|
||
|
SET allow_experimental_database_replicated=1;
|
||
|
|
||
|
DROP DATABASE IF EXISTS replicated_database_params;
|
||
|
|
||
|
CREATE DATABASE replicated_database_params ENGINE = Replicated('some/path/' || currentDatabase() || '/replicated_database_params');
|
||
|
SHOW CREATE DATABASE replicated_database_params;
|
||
|
DROP DATABASE replicated_database_params;
|
||
|
|
||
|
CREATE DATABASE replicated_database_params ENGINE = Replicated('some/path/' || currentDatabase() || '/replicated_database_params', 'shard_1');
|
||
|
SHOW CREATE DATABASE replicated_database_params;
|
||
|
DROP DATABASE replicated_database_params;
|