当前位置:网站首页>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 |
边栏推荐
- 低代码平台调研结果
- PHP:Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocat
- 面试题总结
- EASYCODE template
- C business serial number rule generation component
- 机器学习系列(5):朴素贝叶斯
- Random talk about redis source code 90
- ESP32-C3 ESP-IDF 配置smartconfig 和 sntp 获取网络时间
- JS中的数组(含leetcode例题)<持续更新~>
- USB转串口那些事儿—最大峰值串口波特率VS连续通信最高波特率
猜你喜欢

Vant3 +ts packaged simple step advancer component

USB转串口那些事儿—最大峰值串口波特率VS连续通信最高波特率

VirtualLab基礎實驗教程-4.單縫衍射

SSM integrates FreeMarker and common syntax

Office application cannot start normally 0xc0000142

Typescript type declaration file (III)

Machine learning series (5): Naive Bayes

机器学习系列(3):Logistic回归

Adjust CEPH cluster image source

Write a select based concurrent server
随机推荐
PHP:Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocat
Schedule update | 2022 Microsoft and Intel hacker song competition is in hot registration
GD32F4xx控制DGUS触控按键
js求斐波那契数列
在同花顺开户证券安全吗
PHP implementation of infinite classification tree (recursion and Optimization)
leetcode 718 最长公共子串
js判断回文数
Vant3+ts H5 pages are nested into apps to communicate with native apps
leetcode 300. Longest increasing subsequence
JS sum of two numbers
VirtualLab basic experiment tutorial -4 Single slit diffraction
Office application cannot start normally 0xc0000142
VirtualLab基础实验教程-6.闪耀光栅
Window版本pytorch入门深度学习环境安装与配置
Gospel of audio and video developers, rapid integration of AI dubbing capability
Make good use of IDE, speed up R & D efficiency by 100%
MySQL learning notes
MYSQL:Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column
AlibabaProtect. How to delete and uninstall exe