当前位置:网站首页>Mysql database ----- common commands of database (based on database)
Mysql database ----- common commands of database (based on database)
2022-07-03 20:56:00 【Bloom_ 001】
------------------------------------------------- My database version 8.0.28-------------------------------------------------
One view the database :show databases;

These four databases are MySQL The system provides .
- information_schema Some database object information in the main storage system . For example, user table information , Column information, etc .
- mysql It mainly stores the user authority information of the system .
- performance_schema It mainly stores the performance parameters of the database server .
- sys Metadata information of the main storage system .
Two Create database
create database + Database name ;( Database naming specification reference : Database naming rules -- Universal _HouYing-CSDN Blog _ Database naming rules )
create database Test01;

Obviously, create a database test01 success (SQL Statements are case insensitive ).
* Security version creates database ( Use when you don't know whether the database name is duplicate ).
* create database if not exists test;

* 1 warning representative test Already exist , Not created again .
3、 ... and Delete database
drop database + Database name
drop database test;

Looking at the database again, I found test The database was deleted .
* If you delete a nonexistent database, an error will be reported
* Here is a safe way to delete the database ( See the text to know the meaning )
* drop database if exists test;
Four Use specific databases
use + Database name
use test;

You can see The database has been switched .
Focus on Me, Continuous updating MySQl Knowledge of databases .
边栏推荐
- 不同业务场景该如何选择缓存的读写策略?
- 9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar
- "Designer universe" APEC safety and health +: environmental protection Panda "xiaobaobao" Happy Valentine's Day 2022 | ChinaBrand | Asia Pacific Economic media
- (5) Web security | penetration testing | network security operating system database third-party security, with basic use of nmap and masscan
- 2.5 conversion of different data types (2)
- Test changes in Devops mode -- learning and thinking
- Machine learning support vector machine SVM
- 2022 low voltage electrician examination and low voltage electrician simulation examination question bank
- The global industrial design revenue in 2021 was about $44360 million, and it is expected to reach $62720 million in 2028. From 2022 to 2028, the CAGR was 5.5%
- 浅析 Ref-NeRF
猜你喜欢

Xai+ network security? Brandon University and others' latest "interpretable artificial intelligence in network security applications" overview, 33 page PDF describes its current situation, challenges,

Wargames study notes -- Leviathan

Hcie security Day10: six experiments to understand VRRP and reliability

Operate BOM objects (key)

2022 melting welding and thermal cutting examination materials and free melting welding and thermal cutting examination questions

Scientific research document management Zotero

"Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks

2.5 conversion of different data types (2)

How can the outside world get values when using nodejs to link MySQL

The 29th day of force deduction (DP topic)
随机推荐
Design e-commerce seckill system
Preliminary practice of niuke.com (11)
Hcie security Day11: preliminarily learn the concepts of firewall dual machine hot standby and vgmp
What is the maximum number of concurrent TCP connections for a server? 65535?
电子科技大学|强化学习中有效利用的聚类经验回放
Rhcsa third day operation
浅议.NET遗留应用改造
String and+
【leetcode】1027. Longest arithmetic sequence (dynamic programming)
"Designer universe" argument: Data Optimization in the design field ultimately falls on cost, safety and health | chinabrand.com org
JVM JNI and PVM pybind11 mass data transmission and optimization
Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output
In 2021, the global revenue of syphilis rapid detection kits was about US $608.1 million, and it is expected to reach US $712.9 million in 2028
Hcie security Day12: supplement the concept of packet filtering and security policy
thrift go
6006. Take out the minimum number of magic beans
Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
Golang type assertion and conversion (and strconv package)
jvm jni 及 pvm pybind11 大批量数据传输及优化
Talk about daily newspaper design - how to write a daily newspaper and what is the use of a daily newspaper?