how to create database in mysql command prompt code example Example: create database terminal mysql CREATE DATABASE dbname;