USING mysql code example Example 1: create database terminal mysql CREATE DATABASE dbname; Example 2: how to open database in mysql use DBNAME;