create database using mysql command line code example Example: create database terminal mysql CREATE DATABASE dbname;