Home  >  Article  >  Database  >  How can we create a MySQL database of our own choice?

How can we create a MySQL database of our own choice?

PHPz
PHPzforward
2023-08-28 20:21:021023browse

How can we create a MySQL database of our own choice?

CREATE DATABASE db_name can be used to create a MySQL database of our own choice. For example, to create a database named Sample, we should run the following command -

mysql> CREATE DATABASE Sample;

Query OK, 1 row affected (0.04 sec)

The above is the detailed content of How can we create a MySQL database of our own choice?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete