所以我对数据库还是很陌生,我正在努力研究 PostgreSQL、MySQL 等数据库服务器如何存储数据库。假设我使用客户端应用程序(例如 psql
)创建了一些数据库,然后决定使用 mysql
访问同一个数据库,这可能吗?或者由特定数据库服务器创建的数据库仅供该服务器使用?以及这些数据库在文件系统中的物理存储位置和具体存储方式?
最佳答案
Say I create some database using a client application such as psql and later decide to access the same database using mysql, would that be possible?
没有。正如@tadman 推断的那样,不同的数据库具有非常不同的访问工具和方法。
Or the databases created by a specific database server are exclusive to that server only?
大牌数据库几乎可以在任何地方运行:DB2、Postgres、Oracle 和 MySQL,可以在 99% 的服务器上运行。 MS SQLserver 是个异常(exception),它只能在 Microsoft 服务器上运行。
And where and how exactly are these databases physically stored in the file system?
啊.. 这么多答案,最好带着一个单独的问题回来,注明您想要的特定数据库和服务器操作系统。
旁注:阅读您 Q 的字里行间,您可能想要探索 SQLite。使用 SQLite,数据库是您平台上的一个文件。
关于mysql - 更改数据库服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37777765/