How to create mySQL database from android application - java

i have an android application that connects to a server to send data to mysql database, i need a way to create that same database but in another server. Is there a way that i can create the database in the server from my android application? so i dont need to interact directly with the server mysel. I part from the suppose that the other server already has mysql installed

Related

which type database use for single client but client does not install mysql sqlite etc database

simple question is that.
we made one application that store information.
but .exe provide to the client.
client not installing any database.
we make like, IDM, VLC, brower application
that application does not ask any database installing creating a database.
Try To Microsoft Access But This Client Must Be Use Window Operating System

I can't get Android app to connect to XAMPP Localhost

I've tried and searched the internet.I am very new to this so....
Does anyone know how to connect an Android app to a MySQL Database WITHOUT PHP?
I am using a PrintWriter and flushing two strings to a XAMPP Server Database,
I personally don't like using PHP err (referenced variables that don't even exist)
Basically I just have an app that sends login data to Server Database but I want to test it
any help appreciated!
QuestionOverflow
I see here misconception Of what the PHP is and what MySQL Database for and the real question is "Is it possible to connect to MySQL database from android app?"
And the answer is NO. but why ...
We have android app which run on Mobile Device --> (client)
And server which runs MySQL Database Server --> (server)
The problem here is that the MySQL database server doesn't show it self to public to all clients.
Only programs that runs on the server can connect to the MySQL Database.
But how to save and get the data from my database ??!!
You should need a http end point like PHP that will be available to the clients and will connect to the MySQL Database and get the data and return them to the client (mobile app).
And if don't like PHP if you master it you will like it check this tutorial
enter link description here

shared SQLite db on windows with android applications

shared SQLite db on windows with android applications
I want write application android that install on some device android
I want Center Database for all of application install
I want shared one SQLite db on windows with my Application
I use Web Service but i want use connect to db with IP or (local network) or other way
thank you
I don' think you will be able to connect to remote SQLite database via socket (IP) connection from Android. Mobile data connections are not so reliable as LAN or WiFi on notebooks/PCs.
I think webService is the best solution for you. All your clients (Android apps, Windows apps) should connect to this webService.
Difference is that webService call it's just short connection (connect, send request, receive response, close connection), while database connection need to be persisted in time and can be interrupted, which may cause in inconsistent data or broken transactions.
EDIT: Other way is to use some MBasS (Mobile Backend as a Service). For example Parse.com. It could be your database and the provide their own REST API to access it.

Android SQLite and Desktop Sync

I am unable to figure out what is the best way to achieve a scenario like this:
Working on a project that would have android application as client.
User will take their device with the android application installed to field/visit and capture/punch/key data through out the day. This data would be stored locally on the device in SQLite database.
The data captured in SQLite needs to be exported out and imported into the desktop app (it could be java or .net based) for further processing.
Other points:
A. User could connect the phone via usb to desktop.
B. data flow would always be in one direction (i.e. Phone to Desktop).
C. No internet connection on the phone
My dilemma is how to access the sqllite database programmatically in desktop application? Are there any JDBC drivers that could read data from the sqlite database from a device connected via USB to the computer?
This is just a way to do what you want, there are more ways to do it but from my point of view is the most accurate and scalable.
You would have to make a webservices server on Java, PHP, etc ... with a database MySQL, MongoDB, etc ... and so the mobile device is synchronized with the database that was the cloud.
Thus after a desktop client would connect to the webservice to bring the data in order to process it on your desktop client.
EDIT:
You can view this post's
send-data-from-android-to-pc-via-usb
transferring-data-usb
bi-directional-data-transfer-through-usb-between-an-android-device-and-a-pc-mac

Testing MySQL database on LAN client

I am attempting to create a MySQL DB and Java client app for my home network. I haven't really had any experience with MySQL other than PHPMyAdmin for a website backend (also have used SQLite). I have downloaded the full MySQL installation and a test DB from the MySQL website. On the server machine I successfully connected to the DB as root. Not a difficult task.
Now I want to connect to the DB from my client PC, just to check I can. Eventually I will use the JDBC driver to connect from my Java client app, but before that I just want to check I can connect.
How should I do this? SHould I just install the MySQL command line program onto the client PC?
EXTRA INFO: forgot to add, I'm using Windows 7 on all my machines.
Yes, you could install the MySQL to get MySQL command line program and connect with it, but also you can use another MySQL client tool like PHPMyAdmin, dbForge Studio for MySQL or another one.
To connect from remote host you should create special accout for it, e.g. - 'user_name'#'your_host_name'. Find more information here -
Specifying Account Names
Account Names and Passwords

Categories

Resources