简体   繁体   English

具有本地数据库的Flash应用程序(不是sqlite,不是air)

[英]Flash Application with local database (not sqlite, not air)

I would like to have a Flash Application (not air) to connect to a local database. 我想要一个Flash应用程序(不是air)来连接到本地数据库。

Air is not only getting unsupported by Adobe in LINUX but besides, it has serious problems and miss implementation with SQLite. Air不仅在LINUX中不受Adobe支持,而且还存在严重的问题,并且缺少使用SQLite的实现。

So we want to connect to a local MySQL database. 因此,我们要连接到本地MySQL数据库。 This application should be simple, so we do not want to also have an unnecessary web server (also local) to make a middle communication between the flash app and the MySQL server. 这个应用程序应该很简单,所以我们也不想在Flash应用程序和MySQL服务器之间建立不必要的Web服务器(也在本地)。

There is this driver that allow to communicate Flash with MySQL http://code.google.com/p/assql/ 有此驱动程序允许与MySQL http://code.google.com/p/assql/进行Flash通信。

Question is: 问题是:

  1. Is this the best approach? 这是最好的方法吗?
  2. Would it be any problem using this approach when installing the whole application to each client? 在将整个应用程序安装到每个客户端时,使用这种方法会不会有问题? (because we also in the installation should install a MySQL server). (因为我们还在安装中应该安装一个MySQL服务器)。

A MySQL SERVER is called a SERVER for a reason: It is meant to be installed on servers, not on clients. MySQL SERVER之所以被称为SERVER ,是因为:它是要安装在服务器上,而不是客户端上。 So the answer to your question is: 因此,您的问题的答案是:

1) No, this is not the best approach. 1)不,这不是最佳方法。 Not even close. 差远了。 You would be better off using a SQLite database (however shitty you may think it is) 您最好使用SQLite数据库(但是您可能认为这很糟糕)

2) Yes. 2)是的。 Nobody would like installing a MySQL server on their computers just for the sake of running your application. 没有人愿意为了运行您的应用程序而在其计算机上安装MySQL服务器。 Think of casual (non-expert) users who would need to install and configure the server just for running your app. 考虑一下临时(非专家)用户,他们需要安装和配置服务器才能运行您的应用程序。 That is the very REASON why they developed SQLite and so many languages support it. 这就是为什么他们开发SQLite并因此支持许多语言的原因。

You should check out http://code.google.com/p/air-sqlite/ for sqlite access in AIR (I don't know if this is the same as the inbuilt code or not, so just check that out) 应该检出http://code.google.com/p/air-sqlite/以便在AIR中进行sqlite访问(我不知道这是否与内置代码相同,因此请检出)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM