基于文件的数据库和基于服务器的数据库有什么区别? [英] What is the difference between a file-based database and a server-based database?

查看:166
本文介绍了基于文件的数据库和基于服务器的数据库有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解SQL,也了解数据库的基本结构,但是我不知道基于文件的数据库与基于服务器的数据库到底是如何工作的。

I know SQL, and I know the basic structure of a database, but what I don't know is how exactly does a file-based database work as opposed to a server-based one.

推荐答案


基于文件的数据库与基于服务器的
数据库有什么区别

what is the difference between a file-based database and a server-based database

首先所有数据库都存储在文件中!因此,简化的答案没有区别。

First of all databases are stored in files! So a simplified answer would be there is no difference.

但是当我们指的是 基于文件的数据库 时,是指我们与之交互/更新的数据库直接(通过JDBC驱动程序提供的SQL抽象),但实质上,我们只是直接读取/写入文件。例如: SQLite

But when we refer to file-based databases we mean databases that we interact with/update directly (via an SQL abstraction offered by the JDBC driver) but in essence we just read/write to a file directly. Example would be SQLite

当我们谈论基于服务器的数据库 是指正在运行一个服务器进程(绑定到某个端口),该服务器进程接受请求(即SQL查询)。您的进程连接到服务器,并将查询发送到服务器,服务器本身负责更新数据库文件。示例是 MS-SQL Server

When we talk about server based databases we mean that there is a server process running (bind to some port), that accepts requests (i.e. SQL queries). Your process connects to the server and sends queries to the server which itself is responsible to update the database files. Example is MS-SQL Server.

基于服务器的数据库可以在任何地方(可以通过网络访问),而基于文件的数据库必须位于本地文件系统中的文件中。

The server based database could be anywhere (could be accessed via network) while the file-based database must be in a file in the local file-system.

选择哪种取决于您的需求。

Which one to choose depends on your needs.

这篇关于基于文件的数据库和基于服务器的数据库有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆