You are viewing an old version of this article. View the current version here.


CREATE CATALOG catalog_name

CREATE CATALOG can only be performed by a super user in the def catalog


Creates a catalog and the mysql, sys and performance_schema schemas inside the catalog.

Note that no users are created.


create catalog cat1;
use catalog cat1;
create user root@localhost;
grant all privileges on *.* to root@localhost;
create database test;


The catalog name is limited to 64 characters. All characters must be in the basic ASCII set: (A-Z, a-z, -, _) This limitations is to be able to run catalogs with engines like InnoDB which has limited space in their internal data dictionary.

See also


Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.