msql create databse command code example Example 1: create database terminal mysql CREATE DATABASE dbname; Example 2: mysql go into database USE dbname;