当前位置:网站首页>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
边栏推荐
- 做国外LEAD2022年下半年几点建议
- [linear algebra] determinant of order 1.3 n
- Memorabilia of domestic database in June 2022 - ink Sky Wheel
- HDR image reconstruction from a single exposure using deep CNN reading notes
- Classification, function and usage of MySQL constraints
- 硬件開發筆記(十): 硬件開發基本流程,制作一個USB轉RS232的模塊(九):創建CH340G/MAX232封裝庫sop-16並關聯原理圖元器件
- 自定义 swap 函数
- 自制J-Flash烧录工具——Qt调用jlinkARM.dll方式
- 2500 common Chinese characters + 130 common Chinese and English characters
- sizeof关键字
猜你喜欢

Build op-tee development environment based on qemuv8

将MySQL的表数据纯净方式导出

如何用程序确认当前系统的存储模式?

Management background --1 Create classification

NPDP certification | how do product managers communicate across functions / teams?

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

二叉(搜索)树的最近公共祖先 ●●

Notes de développement du matériel (10): flux de base du développement du matériel, fabrication d'un module USB à RS232 (9): création de la Bibliothèque d'emballage ch340g / max232 SOP - 16 et Associa

CCNA Cisco network EIGRP protocol

二分图判定
随机推荐
剑指offer刷题记录1
sizeof关键字
Inno setup packaging and signing Guide
[Digital IC hand tearing code] Verilog burr free clock switching circuit | topic | principle | design | simulation
NetXpert XG2帮您解决“布线安装与维护”难题
That's why you can't understand recursion
MySQL教程的天花板,收藏好,慢慢看
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
重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障
const关键字
Should novice programmers memorize code?
Gd32f4xx serial port receive interrupt and idle interrupt configuration
Management background --2 Classification list
Management background --1 Create classification
Senior soft test (Information System Project Manager) high frequency test site: project quality management
anaconda安装第三方包
基于 QEMUv8 搭建 OP-TEE 开发环境









