how to create user and database in mysql in ubuntu terminal code example
Example 1: create database in mysql
The CREATE DATABASE statement is used to create a new SQL/MySQL database.
Syntax
CREATE DATABASE databasename;
CREATE DATABASE Example
The following SQL statement creates a database called "testDB":
Example
CREATE DATABASE testDB;
Example 2: create user database mysql command ubuntu
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';