1、Mysql
Mysql
目录
[toc]
本站内容
- 关系型数据库基础
- 安装MySQL
- 管理数据库和表
- 用户和权限管理
- 函数,存储过程和触发器
- MySQL架构
- 存储引擎(Mysql支持插件式存储引擎)
- 服务器选项,系统和状态变量(这里容易产生混淆)
- 优化查询和索引管理
- 锁和事务管理
- 日志管理(日志种类更多:事务日志、二级日志、慢查询日志、错误日志、通用日志……)
- 备份还原(必备技能)
- MySQL集群
1、数据库原理
数据的时代
- 涉及的数据量大
- 数据不随程序的结束而消失
- 数据被多个应用程序共享
- 大数据
数据的分类:
- 结构化的数据:即有固定格式和有限长度的数据。例如填的表格就是结构化的数据,国籍:中华人民共和国,民族:汉,性别:男,这都叫结构化数据 (mysql适合管理)
- 非结构化的数据:非结构化的数据越来越多,就是不定长、无固定格式的数据,例如网页,有时候非常长,有时候几句话就没了;例如语音,视频都是非结构化的数据 (redis适合管理)
- 半结构化数据:比如:XML或者HTML的格式的数据
数据库的发展史
- 萌芽阶段:文件系统 使用磁盘文件来存储数据
- 初级阶段:第一代数据库 出现了网状模型、层次模型的数据库
- 中级阶段:第二代数据库 关系型数据库和结构化查询语言
- 高级阶段:新一代数据库 “关系-对象”型数据库
文件管理系统的缺点:
- 编写应用程序不方便
- 数据冗余不可避免
- 应用程序依赖性
- 不支持对文件的并发访问
- 数据间联系弱
- 难以按用户视图表示数据
- 无安全控制功能