Access MySql Database on Server

116 views
Skip to first unread message

Rishi Agarwal

unread,
May 27, 2012, 11:27:27 AM5/27/12
to ormlite...@googlegroups.com
Hi Everyone,
I have used hibernate to integrate mysql database with java classes. I am developing a Android app now and I want to access mysql database on server from my android app. I read on internet that hibernate is too heavy for Android apps and it would be better to use ORMLite. I went through documentation and sample codes today but most of them are about accessing locally stored SQLlite or h2 database. I want to know that if it is possible to access MySql database on server from my android app using ORMlite. If it is please point me to tutorial or code of some kind.
Thank You.
Rishi

David Fire

unread,
May 27, 2012, 11:46:33 AM5/27/12
to ormlite...@googlegroups.com
Hi,
it docent matters if it is possible or not, you MUST NOT, let access to your DB in that way, you should make some web services, get some json back and parse it.
If you let you DB open like you say, it will be hacked in less than a week.
David

2012/5/27 Rishi Agarwal <rishia...@gmail.com>



--
 (\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

Rishi Agarwal

unread,
May 27, 2012, 11:53:04 AM5/27/12
to ormlite...@googlegroups.com
Hi David,
Thanks for your advice. I will look into how can I use JSON to access mysql database.
--
Rishi Agarwal
3rd Year Undergraduate
Department of Mathematics
Indian Institute of Technology, Delhi
Reply all
Reply to author
Forward
0 new messages