On this page
Goal: create an isolated database and start using it. Prerequisites: server running (Quickstart).
Steps#
- Create it
sqlsource CREATE DATABASE shop; - Use it
sqlsource USE shop; -- or reconnect with database=shop - Verify
sqlsource SHOW databases; SELECT current_database();
Expected result: SHOW databases lists plomid and shop; current_database() returns shop.
Explanation#
plomid shares the root engine; shop gets <data_dir>/databases/shop/ with its own WAL. Names must match [_A-Za-z][_A-Za-z0-9]*.
Next: Create a table · Related: Configuration
Was this page helpful? Thanks — noted locally, nothing is sent anywhere.