SingleStore Managed Service

Rename an Unlimited Storage Database

To rename an unlimited storage database, run DETACH DATABASE ... followed by ATTACH DATABASE ... AS ....

The following example renames the database example_db1 to example_db2.

DETACH DATABASE example_db1;
ATTACH DATABASE example_db1 AS example_db2;