create database with cli code example Example 1: create database terminal mysql CREATE DATABASE dbname; Example 2: mysql go into database USE dbname;