MySQL database command line operation

Database command line operation

Command line operation of the database, [if exists]can be added from time to increase, the command line must add a semicolon ;at the end

Create a database: create database [if not exists] database name;

create database if not exists test;

Delete the database: drop database [if exists] database name;

drop database if exists test;

View the database: show databases;

show databases;

Use database: use database name;

use test;

Guess you like

Origin blog.csdn.net/weixin_44953227/article/details/108752845