当前位置:网站首页>Review of MySQL (I): go deep into MySQL
Review of MySQL (I): go deep into MySQL
2022-06-12 18:18:00 【BKSW.】
MySq Review ( One ): thorough MySql
How to be in Windows Window login Mysql?
If in cmd Windows cannot log in Mysql, Remember to Mysql Of bin The path is added to the... Of the environment variable Path Directory !!!

Do not want the password to be seen :
mysql -uroot -p
Enter password:******
stop it Mysql:net stop mysql
start-up Mysql:net start mysql
How to modify Mysql password ?
- Method 1 :

Method 2 :

Method 3 :

Method four :

Sql、DB、DBMS The relationship between ?
- DB:
DataBase( database , The database actually exists on the hard disk in the form of files ) - DBMS :
DataBase Management System ( Database management system , Common are : MySQL Oracle DB2 sybase SqlServer…) - SQL:
Structured query language , It's a standard universal language . The standard sql Suitable for all database products .
SQL When a statement is executed , In fact, the internal will compile first , And then execute sql.(sql language Sentence compilation by BMS complete .)
DBMS Responsible for the execution of sql sentence , Through execution sq1l Statement to operate DB The data .
DBMS - ( perform )-> SQL - ( operation )-> DB
What is a watch ?
surface :table
Is the basic component of the database , All the data is organized in the form of tables , The purpose is to be readable .
A table includes rows and columns :
That's ok : It's called data / Record (data)
Column : It's called a field (column)
| Student number | full name | Age |
|---|---|---|
| 110 | Zhang San | 20 |
| 120 | Li Si | 21 |
Sql The classification of sentences
DQL: Data query language data query langugeQuery statement , Anyone who seclect sentence , All are DQL.
DML: Data operation language data manage langugeinsert、delete、update , Add, delete and modify the data in the table ..
DDL: Data definition language data definition langugecreate、drop、alter, Modification of table structure .
TCL: Transaction control language Transaction control langugecommit Commit transaction ,rollback Roll back the transaction .
DCL: Data control language data control langugegrant to grant authorization ,revoke Revocation of authority, etc .
Import data
Baidu network disk link :https://pan.baidu.com/s/1Pgnb1fwNbC-VaFfFC-5xOg
Extraction code :8b2y
land MySql database
See what databases are
show databases; This is not sql sentence , yes Mysql The command statement of .

Create your own database
create database bjpowernode;

Use your own database
use bipowernode;

See which tables are in the database you are currently using
show tables;

Initialization data
source D:\LeStoreDownload\Msq note \bjpowernode.sql

View table structure
desc Table name ;
- Department information sheet :dept
| English field name | Chinese description | type |
|---|---|---|
| DEPTNO | Department number | INT(2) |
| DNAME | Department name | VARCHAR(14) |
| LOC | Location | VARCHAR(13) |
- Employee information form :emp
| English field name | Chinese description | type |
|---|---|---|
| EMPNO | Employee number | INT (4) |
| ENAME | Employee name | VARCHAR(10) |
| JOB | jobs | VARCHAR(9) |
| MGR | Superior leaders | INT (4) |
| HIREDATE | Date of entry | DATE |
| SAL | salary | DOUBLE(7,2) |
| COMM | allowance | DOUBLE (7,2) |
| DEPTNO | Department number | INT(2) |
Be careful :DEPTNO Field is a foreign key ,DEPTNO Value from dept Primary Key , It acts as a constraint
- Salary grade information table :saldrade
| English field name | Chinese description | type |
|---|---|---|
| GRADE | Grade | INT |
| LOSAL | Minimum salary | INT |
| HISAL | The highest salary | INT |
| English field name | Chinese description | type |
|---|---|---|
| GRADE | Grade | INT |
| LOSAL | Minimum salary | INT |
| HISAL | The highest salary | INT |
边栏推荐
- JS for Fibonacci sequence
- 赛程更新| 2022微软与英特尔黑客松大赛火热报名中
- Esp32-c3 esp-idf configuring smartconfig and SNTP to obtain network time
- leetcode 647. Palindrome substring
- JS dichotomy
- Extreme Programming -- Practice of root cause analysis
- Still using Microsoft office, 3 fairy software, are you sure you don't want to try?
- Resttemplateconfig configuration print request response log under soringboot
- js快速排序
- VirtualLab basic experiment tutorial -4 Single slit diffraction
猜你喜欢
![Interior design style type, rendering 100 invitation code [1a12]](/img/90/8bbfbe33c5b412498744c0ea0ed559.jpg)
Interior design style type, rendering 100 invitation code [1a12]

ESP32-C3 ESP-IDF 配置smartconfig 和 sntp 获取网络时间

迄今微软不同时期发布的SQL Server各版本之间的大致区别,供参考查阅

PHP implementation of infinite classification tree (recursion and Optimization)

Typescript common types (I)

企业架构的第一性原理

Machine learning series (3): logistic regression

PHP:Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocat

Vant3+ts H5 pages are nested into apps to communicate with native apps

Schematic diagram of active differential crystal oscillator and differences among lv-pecl, LVDS and HCSL
随机推荐
leetcode 718 最长公共子串
Gd32f4xx communicates with electric energy meter conforming to dlt645_ two
Esp-idf adds its own components
Summary of static memory allocation and dynamic memory allocation
Window版本pytorch入门深度学习环境安装与配置
Gossip about the source code of redis 89
ESP32-C3 ESP-IDF 配置smartconfig 和 sntp 获取网络时间
同花顺能开户吗,同花顺在APP上可以直接开通券商安全吗
C language practice (4) -- multiplication and division of large numbers
JS quick sort
01-复杂度
静态内存分配和动态内存分配小结
LCD parameter interpretation and calculation
SSM integrates FreeMarker and common syntax
MYSQL:Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column
JS中的栈(含leetcode例题)<持续更新~>
GD32F4xx控制DGUS 变量显示
联想回应笔记本太多太杂乱:现在是产品调整期 未来将分为数字/Air/ Pro三大系列
TypeScript常用类型(一)
DRM driven MMAP detailed explanation: (I) preliminary knowledge