Home > Database > Mysql Tutorial > body text

How do we create a new database using mysqladmin?

王林
Release: 2023-09-13 08:29:09
forward
1259 people have browsed it

How do we create a new database using mysqladmin?

We need special permissions to create or delete MySQL databases. Following is the syntax to create a new database using the mysqladmin binary -

Syntax

[root@host]# mysqladmin -u root -p create db_name
Enter password:******
Copy after login

Here, db_name is the name of the database we want to create.

Example

The following is a tutorial to create a database named <的数据库的简单示例强>−

[root@host]# mysqladmin -u root -p create TUTORIALS
Enter password:******
Copy after login

The above query will create a MySQL database named TUTORIALS.

The above is the detailed content of How do we create a new database using mysqladmin?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template