直接从iPhone访问MySQL数据库 [英] Accessing MySQL database from iPhone directly
问题描述
我正在尝试将我的iPhone aap直接连接到MySQL数据库.我做了很多阅读,发现使用MCPkit可以访问数据库.现在我还发现,iPhone中不支持mcpkit,而mcpkit在模拟器中运行.
我知道另一种选择是Web服务,但是我必须直接连接到数据库.
如果没有直接使用MySQL的办法,那么您可以考虑看看Sequel Pro,它从CocoaMySQL离开的地方接了下来.它似乎一直在积极维护,而MCPKit几年来还没有发布任何更新.
我不能说Sequel Pro是否允许您为iPhone进行构建,但我想它比MCPKit拥有更大的成功机会.
您可以从官方网站中获取包括源代码(GPL)的Sequel Pro副本. >
I am trying to connect my iPhone aap directly to the MySQL database. I did a lot of reading, and I found that by using MCPkit we can access the database. Now I also found that the mcpkit is not supported in iPhone, while it runs in simulator.
I know the other alternative is web services, but I have to directly connect to the database.
If there is no way out of using MySQL directly, then you might consider to have a look at Sequel Pro which picked up where CocoaMySQL left. It appears to be actively maintained whereas MCPKit haven't released any updates in a couple of years.
I can't say whether Sequel Pro will allow you to build for the iPhone, but my guess is that it will have a higher chance of success than MCPKit.
You can grab a copy of Sequel Pro including source code (GPL) from the official website.
这篇关于直接从iPhone访问MySQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!