即使未安装 MySQL,如何确保 MySQL 应用程序也能在客户端的 PC 上运行 [英] How to make sure that MySQL app will work on client's PC even if MySQL isn't installed

查看:65
本文介绍了即使未安装 MySQL,如何确保 MySQL 应用程序也能在客户端的 PC 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了带有 MySQL 数据库的 Windows 应用程序.数据库将仅存储在用户的 PC 上.即使客户端没有在他的 PC 上安装 MySQL,如何确保我的应用程序可以在每个 Windows 操作系统上运行 - 如果缺少 MySQL,我如何在用户的 PC 上导入它?

I got windows application with MySQL database. Database will be stored on user's PC only. How to secure that my application will work on every Windows OS even if client doesn't have MySQL installed on his PC - how can I import mysql on user's PC if it's missing?

推荐答案

您选择了错误的方法.MySQL 数据库不适合安装在每台客户 PC 上.这有很多原因.例如:

You choose wrong approach. MySQL database is not suitable to be installed on each customer PC. There have many reasons to this. For example:

  • 客户 PC 太弱,无法运行 MySQL 实例,
  • 或者可能是客户端 PC 已经安装了 MySQL,
  • 或其他数千个原因之一

您只能在客户端-服务器架构中选择 MySQL:轻量级客户端应用程序和服务器,MySQL 存储所有客户端数据.这种方法要求客户端到服务器之间的网络连接稳定.

You can choose MySQL only in client-server architecture: lightweight client application and server with MySQL stored all clients data. This approach demand stable network connection between client to server.

如果您想将所有数据本地存储在客户端 PC 上 - SQLite 是正确的选择.

If you want to store all data locally on clients PC - SQLite is right choose.

这篇关于即使未安装 MySQL,如何确保 MySQL 应用程序也能在客户端的 PC 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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