This chapter will introduce how to use DistSQL to manage resources and rules in a distributed database.
Use MySQL as example, can replace to other databases.
mode
and authentication
configurations to server.yaml
;CREATE DATABASE foo_db;
USE foo_db;
More details please see concentrate rule examples.
More details please see concentrate rule examples.
DROP DATABASE
will only remove the logical distributed database
, not the user’s actual database;DROP TABLE
will delete all logical fragmented tables and actual tables in the database;CREATE DATABASE
will only create a logical distributed database
, so users need to create actual databases in advance.