DEV Community

Cover image for MongoDB vs MySQL
Nasirul Islam
Nasirul Islam

Posted on

MongoDB vs MySQL

MongoDB

MongoDB is a cross-platform document-oriented database program. And MongoDB is a NoSQL database program. MongoDB uses documents like JSON with optional schema. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License.

NoSQL Database

NoSQL Database is a non-relational Data Management System, that does not require a fixed schema. And NoSQL databases are databases that store data in a format other than relational tables. That's is, A NoSQL database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases. NoSQL database stands for “Not Only SQL” or “Not SQL.

MySQL

MySQL is an open-source relational database management system from the Oracle Corporation. Like other relational systems, MySQL stores data in tables and uses structured query language (SQL) for database access. When MySQL developers need to access data in an application, they merge data from multiple tables together in a process. In MySQL, we predefine our database schema and set up rules to govern the relationships between fields in our tables.

SQL Database

SQL stands for Structured Query Language which is basically a language used by databases. SQL lets you access and store, manipulate, and retrieve data within relational databases. Data in tables is stored in row and column format at the logical level, but physically it stores data in something called data pages. A data page is the fundamental unit of data storage in SQL Server and it is 8KB in size. Using SQL, you are able to interact with the database by writing queries, which when executed, return any results which meet its criteria.

Conclusion

From this tutorial, we have learned about MongoDB vs MySQL

Learned from the internet.

Thanks for reading

Reach out to me on:

Top comments (1)

Collapse
 
thenickest profile image
TheNickest

I am missing a bit the versus part. To get an idea when does which make sense.