MYSQL数据库离线使用
有没有一种方法可以在没有数据库管理系统的情况下使用MYSQL数据库..就像离线使用表而无需在机器上安装数据库管理系统.. 如果有的话,请指出我正确的方向吗? 谢谢你!
Is there a way to use a MYSQL database without the database management system.. Like use tables offline without installing the db management system on the machine..
If there is can you please point me in the right direction?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
据我所知,没有办法做到这一点。
不过,有一个可移植的 DBMS SQLite。它有不同的方式,可以在具有不同编程语言的其他平台上使用。
阅读您的评论后,我几乎可以肯定,这就是您所需要的。
我猜它没有 MySQL 那么快,但它可以工作。
As far as I know, there is no way to do this.
However, there is a portable DBMS SQLIte. It comes in different ways and can be used on other platform with different programming languages.
After reading your comment, I'm almost sure, this is what you need.
It's not that fast as MySQL I guess, but it works.
您可以使用嵌入式MySQL服务器库来访问MySQL数据文件无需运行 MySQL 服务器。
You can use The embedded MySQL Server Library to access MySQL data files without running the MySQL server.
您可以设置一个数据库以在本地主机上工作。除非您设置前端内容以让互联网与其交互,否则这将是离线的。
“没有数据库管理系统”到底是什么意思?您始终需要一种与其交互的方式,即使它处于离线状态。 (不然怎么可能对你有用呢?)
You can setup a database to work on your localhost. This will be offline unless you setup the front-end stuff to let the internet interact with it.
What exactly do you mean "without the database management system"? You always need a way of interacting with it, even if it is offline. (Otherwise how can it work for you?)
运行 mysql 至少需要应用程序的服务器端部分 mysql-server。该服务器应用程序附带了用于管理实例的所有内置工具。我怀疑你可以阻止安装这个。
The server side piece of the application, mysql-server, is needed at a minumum to run mysql. This server application comes with all the tools built-in to manage the instance. I doubt you can prevent installation of this.
如果您实际上在十六进制或文本编辑器中打开了表文件,您会发现您肯定需要安装 mysql 应用程序才能理解它们并使用它们。当然,记录都是纯文本形式的(myisam 的 .myd 文件,innodb 表的 ibdata1 文件),但是设计一个自定义应用程序来解析或更新文件结构,以及尝试绑定每个表的相关文件中包含的表结构。
If you've actually opened the table files in a hex or text editor, you'll see that you will definitely need the mysql application installed to make any sense of them to use them. Sure the records are all there in plain text (.myd files for myisam, the ibdata1 file for innodb tables), but it would be a complete time-waster devising a custom app to parse or update the file structure, as well as trying to tie in table structure contained in the related files for each table.