当前位置:网站首页>Understand the differences between mongodb and MySQL
Understand the differences between mongodb and MySQL
2022-07-21 19:33:00 【Hai Yong*】
- Personal website :【 Hai Yong 】【 Fishing games 】
- 🤟 Humorous front-end learning courses :28 Cases interesting learning front end
- Want to find a little partner to learn and communicate together , Please click on 【 Full stack technology exchange group 】
- Free and practical computer related knowledge question bank : Come in and hang out
Give you Amway a free and practical front-end brush question ( Daquan of facial scriptures ) Website , Click to jump to the website .
Let's talk about MongoDB and MySQL Differences in various parameters :
What is? MongoDB and MySQL?
MongoDB | MySQL |
---|---|
MongoDB By MongoDB, Inc. Open source database developed .MongoDB Store data in something like JSON In the document , The structure of these documents may vary . It's a popular NoSQL database . | MySQL Is a popular open source relational database management system (RDBMS), from Oracle Corporation Development 、 Distribution and support . |
How to store data ?
MongoDB | MySQL |
---|---|
stay MongoDB in , Each individual record is stored as ’documents’. | stay MySQL in , Each individual record is stored as “ That's ok ”. |
The upper limit of the recorded level
MongoDB | MySQL |
---|---|
Documents belonging to a specific class or group , Stored in “ aggregate ” in . Example : User set . | “ surface ” Used to store rows of similar types ( Record ). |
SQL or NoSQL
MongoDB | MySQL |
---|---|
MongoDB It's called NoSQL database . This means that predefined structures of incoming data can be defined and adhered to , and , if necessary , Different documents in the collection can have different structures . It has a dynamic mode . | seeing the name of a thing one thinks of its function ,MySQL Using structured query language (SQL) Database access . The schema cannot be changed . Only input after a given mode . |
Example : In a table , If there is a name 、 Address column , And you need to enter “ Age ”, It will not be used , Because the column is not defined in the schema .
This can be done in MongoDB To realize , Any new field can be inserted regardless of the schema , Therefore, it is known to have dynamic patterns .
Significant features
MongoDB | MySQL |
---|---|
MongoDB High availability and scalability are considered in the design , And includes out of the box copying and slicing . | MySQL The concept does not allow effective replication and fragmentation , But in MySQL in , You can use connections to access relevant data , So as to minimize repetition . |
Terminology differences
MongoDB and MySQL There are differences based on terminology .
The data shows
There are great differences between the representation and storage of data in the two databases .
MongoDB By category JSON Data is stored in the form of a document , and MySQL Store data in the form of table rows , As mentioned earlier .
Example : Show how to be in MongoDB and MySQL Store and represent data in .
️ Good books recommend
【 Content abstract 】
- The first 1 Chapter MySQL Database foundation
- The first 2 Chapter Detailed explanation InnoDB Storage engine
- The first 3 Chapter MySQL User management and access control
- The first 4 Chapter management MySQL Database objects for
- The first 5 Chapter MySQL Application development
- The first 6 Chapter MySQL Transaction and lock of
- The first 7 Chapter MySQL Backup and recovery
- The first 8 Chapter MySQL Master slave replication and master master master replication
- The first 9 Chapter MySQL High availability architecture
- The first 10 Chapter MySQL Performance optimization and operation and maintenance management
- The first 11 Chapter MySQL Database monitoring
- The first 12 Chapter Use MySQL Database middleware
JD self purchase link : 《MySQL Database advanced actual combat 》- Jingdong books
边栏推荐
- Model模态框点击其他除了模态框区域不消失
- Software testing interview question: what is your biggest interest in testing? Why?
- NFS share
- Software test interview question: describe the complete process of a test activity in detail. (for reference, this answer is mainly the practice of waterfall model)
- 【C语言】文件相关函数详解
- Matrix
- Distribué. ID Builder
- MYSQL09_ Elaborate on database data types
- JSP custom tag (the custom way of foreach tag and select tag)
- Flexible array of dynamic memory management 2
猜你喜欢
Distributed High availability and high scalability index
2022全网最火免费中文版-《深度学习在图像处理中的应用教程》免费分享
Résoudre l'erreur signalée: uncaught typeerror: impossible de lire les propriétés sous - jacentes (lire « installer»)
MySQL optimization summary I
List容器的系列操作( 详解 )
分布式.高可用 高可扩展 指标
Penetration test - Application of file containing vulnerabilities and PHP pseudo protocol
Distributed Cap theory
Distributed High concurrency & high availability
渗透测试-文件包含漏洞以及php伪协议的应用
随机推荐
Penetration test - Application of file containing vulnerabilities and PHP pseudo protocol
深度学习——(4)VGG16 图像分类
Introduction to ESP privilege isolation mechanism
MySQL advanced (b)
Other regular validation rules web launch app
C language file operation
分布式.达到什么指标才算高并发
引用URL的标签属性href与src的区别是什么?
Es custom analyzer
Distributed Cap theory
MySQL优化总结 一
分布式.高并发概念和设计目标
腾讯IM实战:低代码超快实现即时通讯录
Distributed load balancing
线程池.线程数量设置
MYSQL06_ Seven join operations and union all of sql99
Preparation of dihydrotanshinone I loaded albumin nanoparticles / norcantharidin albumin nanoparticles / voriconazole albumin nanoparticles
trivy 源码分析(扫描镜像中的漏洞信息)
hcip第二天实验
分布式.高可用 高可扩展 指标