当前位置:网站首页>MySQL ---- first acquaintance with MySQL
MySQL ---- first acquaintance with MySQL
2022-07-06 22:30:00 【4nc414g0n】
First time to know MySQL
Concept and installation
The database is “ Organize... According to the data structure 、 Warehouse for storing and managing data ”. Is a long-term storage in the computer 、 organized 、 Shareable 、 A collection of large amounts of data under unified management
It is mainly used to solve the shortcomings of file saving data :
- File security issues
- Files are not conducive to data query and management
- Files are not conducive to storing large amounts of data
- It's not convenient to control the file in the program
Mainstream databases :
- SQL Sever: Microsoft products ,.Net Programmer's favorite , Medium and large scale projects .
- Oracle: Oracle products , Suitable for large projects , Complex business logic , Concurrency is generally not as good as MySQL.
- MySQL: The world's most popular database , It belongs to Oracle , Good concurrency , Not suitable for complex business . Mainly used in e-commerce ,SNS, Forum . For the simple SQL The treatment effect is good .
- PostgreSQL : A relational database developed by the computer department of the University of California, Berkeley , Whether it's for private use , commercial , Or for academic research , Free to use , Modify and distribute .
- SQLite: It's a lightweight database , Abide by ACID Database management system based on RDBMS , It's contained in a relatively small C In the library . Its design goal is embedded , And it has been used in many embedded products , It takes up very low resources , In embedded devices , It may take only a few hundred K That's enough memory .
- H2: It's a use. Java Development of embedded database , It itself is just a class library , It can be directly embedded into the application project
Linux Next MySQL Installation :centos7 install Mysql 5.7.27, Detailed and complete tutorial
MySQL Use
Connect to server :
mysql -h [ The goal is IP] -P [ port ] -u root -pamong:
- Not added -h The parameter represents the default local loopback
- Not added -P Parameter indicates the default 3306 port
- start-up mysql:service mysqld start
- stop it mysql:service mysqld stop
- restart mysql:service mysqld restart
- mysql Whether to start :service mysqld status
Create database :
create database [ Database name ];
Display all databases :show databases;
Delete a database :drop database [ Database name ];
Use a database :use [ Database name ];
Create database tables :create table account(id int, nickname varchar(32), gender varchar(2));
Show table status :desc [ Table name ];
insert data :insert into account(id, nickname, gender) values (1, 'test', 'male');
View all the contents of the table :select * from [ Table name ];
understand MySQL
The essence of a database is that it has a client , The network program of the server ,MySQL Is a portable database
Database program understanding :
- adopt MySQL Client to mysqld server Sponsored create database Create table operation , stay Linux The essence is in /var/lib/mysql Create a directory ,
- Create a table structure in a database , Essentially, it is to create multiple ordinary files
MySQL framework :
Be careful: All in the application layer
SQL classification :
- DDL【data definition language】 Data definition language , Used to maintain the structure of stored data , For instructions : create, drop, alter
- DML【data manipulation language】 Data manipulation language , Used to manipulate data , For instructions : insert,delete,update
- DML There is another one in the DQL【Data QueryLanguage】, Data query language , For instructions : select
- DCL【Data Control Language】 Data control language , Mainly responsible for authority management and affairs , For instructions : grant,revoke,commit
MySQL Supported storage engines :
show engines;The most commonly used is InnoDB and MyISAM
边栏推荐
- [sdx62] wcn685x will bdwlan Bin and bdwlan Txt mutual conversion operation method
- NPDP认证|产品经理如何跨职能/跨团队沟通?
- SQL server generates auto increment sequence number
- 图像的spatial domain 和 frequency domain 图像压缩
- SQL Server生成自增序号
- 自定义 swap 函数
- ThreadLocal详解
- RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
- 软考高级(信息系统项目管理师)高频考点:项目质量管理
- PVL EDI project case
猜你喜欢

数据处理技巧(7):MATLAB 读取数字字符串混杂的文本文件txt中的数据

That's why you can't understand recursion

Config:invalid signature solution and troubleshooting details
![[linear algebra] determinant of order 1.3 n](/img/6e/54f3a994fc4c2c10c1036bee6715e8.gif)
[linear algebra] determinant of order 1.3 n

基於 QEMUv8 搭建 OP-TEE 開發環境

Web APIs DOM time object

Advantages of link local address in IPv6

Aardio - 利用customPlus库+plus构造一个多按钮组件

关于声子和热输运计算中BORN电荷和non-analytic修正的问题

自定义 swap 函数
随机推荐
Plafond du tutoriel MySQL, bien collecté, regardez lentement
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
小程序系统更新提示,并强制小程序重启并使用新版本
Inno Setup 打包及签名指南
Daily question 1: force deduction: 225: realize stack with queue
Config:invalid signature solution and troubleshooting details
空结构体多大?
Management background --2 Classification list
Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"
Installation and use of labelimg
NPDP认证|产品经理如何跨职能/跨团队沟通?
剪映+json解析将视频中的声音转换成文本
二分图判定
手写ABA遇到的坑
sizeof关键字
void关键字
pytorch_YOLOX剪枝【附代码】
ResNet-RS:谷歌领衔调优ResNet,性能全面超越EfficientNet系列 | 2021 arxiv
const关键字
Chapter 3: detailed explanation of class loading process (class life cycle)









