直接从 Flex 连接任何数据库
是否可以直接从flex连接任何数据库?
Is it possible to connect any database from flex directly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
是否可以直接从flex连接任何数据库?
Is it possible to connect any database from flex directly?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您可以使用 Michael 提到的 asSQL,或者使用 Adobe Air 运行时。
但是,关于使用此库,必须说一下:从客户端直接建立数据库连接是极其不安全的,除非它来自 Adobe Air,因为数据库是本地的。
您不想通过互联网发送用户名/密码来连接到数据库,除非您确实不关心数据或数据的安全性。我建议您使用中间件解决方案,例如 PHP 或 Java,它可以为您的客户端连接数据库以获取所需的数据。
You can use asSQL as mentioned by michael, or use the Adobe Air runtime.
However, this must be said about using this library: It is EXTREMELY insecure to have a straight database connection from the client unless it's from Adobe Air since the db is local.
You don't want to send your username/password over the internet to connect to a database unless you really don't care about the data or security of your data. I would recommend you use a middleware solution, like PHP or Java that interfaces your database for your client to get the data it needs.
除非您使用 Adobe AIR 桌面版,此时您将使用 SQLLite api 创建/连接到 sqlite 数据库文件。
http://livedocs.adobe.com/flex/3 /html/help.html?content=SQL_01.html
其他任何事情都需要后端服务来处理此类事务。
Not unless you use Adobe AIR for desktop at which time you'd be using the SQLLite api's to create/connect to a sqlite database file.
http://livedocs.adobe.com/flex/3/html/help.html?content=SQL_01.html
Anything else is going to require a back end service to handle such transactions.
你可以试试asSQL。
http://ntt.cc /2008/02/01/actionscript-mysql-driver-assql-access-database-from-flex.html
http://code.google.com/p/assql/source/browse/trunk/assql/asSQL_PureAS3/src /com/maclema/mysql/Connection.as
You may try asSQL.
http://ntt.cc/2008/02/01/actionscript-mysql-driver-assql-access-database-from-flex.html
http://code.google.com/p/assql/source/browse/trunk/assql/asSQL_PureAS3/src/com/maclema/mysql/Connection.as