Difficulty:INTERMEDIATE
Applies to:MySQL 5.X

Summary (Headers Level 2)

This article will show you how to create a database using the MySQL Command-Line Tool.

Stey-by-Step

Step 1:

Invoke the MySQL Command-Line Tool from the prompt of your command interpreter:

> mysql --user_name=user_name --password=your_password

Step 2:

mysql> CREATE DATABASE db_name;

Successful creation will result in the following output:

Query OK, 1 row affected (time sec)

Related Products

MySQL is available on a wide range of CWCS services, including Dedicated Servers, Cloud Hosting and VPS.