how to login to mysql using cmd and creating database code example Example: create database terminal mysql CREATE DATABASE dbname;