- Start the MySQL service;
- Create role and user in MySQL with creation permission for ShardingSphere-Proxy;
- Start Zookeeper service;
- Add and
authentication
configurations toserver.yaml
; - Start ShardingSphere-Proxy;
- Use SDK or terminal connect to ShardingSphere-Proxy.
- Use newly created logic database
- Currently,
DROP DATABASE
will only remove thelogical distributed database
, not the user’s actual database; - will delete all logical fragmented tables and actual tables in the database;
CREATE DATABASE
will only create alogical distributed database
, so users need to create actual databases in advance.