Solved How to connect to MySQL Server using iPhone
-
I have successfully connected to MySQL Server on Mac, but when I debuged on iPhone, the old error appeared again which said "Driver not loaded Driver not loaded" as the same as appeared on Mac before.
So, how could I connect to MySQL Server using iPhone? need some plugins?
Thank you. -
@Bayesky Why do you want to do so?
Where is this MySQL server running?
Apps running on mobile phones should not connect to SQL databases directly. Such databases should not be exposed to the Internet directly anyway. Instead REST services are usually provided on the server to have an access in a controlled way."need some plugins?" - yes, same as is used on PC. But, again: why do you want to do so?
-
@jsulm I would want to download/upload some files saved in MySQL Server. When open some page, iPhone connects to the server automatically and list the whole content, and user clicks the favorite item and then downloaded from server.
If I want to achieve this, what method should I use?
MySQL Server is running in a cloud server. You said "Apps running on mobile phones should not connect to SQL databases directly", is out of concern for safety? .
Forgive my unprofessional question, I am a beginner on Internet programming.
Thank you again. -
@Bayesky Why do you store files in a SQL server?
"If I want to achieve this, what method should I use?" - you should implement a REST API.
If you just want to download files from the server there is no need for SQL server. -
This post is deleted! -
@jsulm Thanks for help. I learn REST API and find it most helpful indeed. Thank you again.