当前位置:网站首页>MySQL体系结构及基础管理(二)
MySQL体系结构及基础管理(二)
2022-06-12 21:40:00 【熬夜泡枸杞】
文章目录
1. MySQL体系结构
1.1 MySQL客户端/服务端工作模式(c/s)
(1) 本地socket连接方式:
socket=/tmp/mysql.sock
# 通过本地socket文件的方式,去直接登录到数据库,不依赖于ip地址和端口
mysql -S /tmp/mysql.sock
说明: 只能在本地使用,不依赖于ip和端口
(2) 远程TCP/IP连接方式
mysql -uroot -p123 -h 10.0.0.51 -P 3306


1.2 服务器端-实例
实例:mysqld+工作线程+预分配的内存结构
功能:管理数据
公司:boss+员工+办公室

1.3 mysqld程序结构

1.4 MySQL逻辑结构
Linux
目录: 名字 + 属性
文件: 文件名 + 文件属性 + 文件内容
MySQL
库: 库名 + 库属性
表: 表名 + 表属性 + 表内容 + 列
mysql> show databases;
mysql> use mysql
mysql> show tables;
mysql> desc user;
1.5 MySQL物理存储结构
engine(存储引擎): 有了段区页,为了连续的io,io是可以顺序进行读写的
段: 一个表就是一个段,可以由一个或者多个区域构成(分区表除外,把一个大表拆分成多个分区表,这个是建表的时候的操作,建一个分区功能的分区表,可以按时间拆分表,每个分区表是要给段)
区: 一个区(簇),默认1M,连续的64个pages
页: 一个页,默认16KB,连续的4个OS block,最小的IO单元
物理存储结构:
程序结构和物理结构图:


2. MySQL基础管理
2.1 用户管理
2.2 权限管理
2.3 连接管理
2.4 初始化配置管理
2.5 启动和关闭
2.6 同版本多实例配置
边栏推荐
- Build a highly available database
- 服务没有报告任何错误mysql
- 有向图深拷贝
- How do complex systems detect anomalies? North Carolina UNCC and others' latest overview of graph based deep learning anomaly detection methods in complex distributed systems describes the latest prog
- Teamwork collaboration application experience sharing | community essay solicitation
- NPOI 创建Word
- zgc的垃圾收集的主要階段
- Icml2022 | galaxy: active learning of polarization map
- Rearrangement exercises
- jsonUtils
猜你喜欢
随机推荐
DRF receives nested data and creates objects. Solution: DRF not NULL constraint failed
JdbcTemplate插入并返回主键
(4) Pyqt designs and implements the [factory production management system] order page - add, delete, modify and query (including source code analysis)
Shell script Basics
Insert sort
Kdd2022 | graphmae: self supervised mask map self encoder
Zip compression decompression
@loadbalance annotation of resttemplate
ASCII 码对照表
插入排序
[target detection] |dive detector into box for object detection new training method based on fcos
多线程模型下的生产者消费者模式
Cookies and sessions
脱颖而出!OceanBase 入选 2021“科创中国”开源创新榜单
SQL调优指南笔记8:Optimizer Access Paths
linux备份mysql
Solve one-dimensional array prefix sum
Distributed cloud service developer'allegro Xile technology 'received an angel round financing of US $3million
Pixel level reconstruction and restoration technology to solve severe image blur
JUC并发工具包使用指南









