I have a legacy website created in PHP and MySQL. I wish to migrate this onto Google App Engine (Python).
Has anybody done this before? Any examples, tips, resources, tools you'd like to share?
I believe I will have to use "bulkloader" introduced in the GAE docs. Still haven't figured out how to get started.
I have two tasks:
Migrate from MySQL DB to local GAE App data store
Convert from MySQL -> CSV/XML -> Production data store
Help will be appreciated! :-)
--Sri
GAE now supports PHP (experimental) and CloudSQL which is very similar to MYSQL. I am currently writing a few testing apps. You can try to apply here.
To enable your PHP applications to be deployed to App Engine, visit https://gaeforphp.appspot.com/ to register your application to be whitelisted
Try from a regular gmail account.
Related
I made a Web Program which runs perfect on my localhost.
Now I want to bring it in the App Store and Google Playstore.
I hope someone of you can give me a tip which Plattform I should use as a Server.
T thought about azure or firebase.
But by firebase i have to Change my whole code because of tht nosql and it is not really possbile to make dynmaic pages.
on azure I only can bring it on the Marketplace.
does anyone know other pltfforms?
Ionic / Cordova / Phongap / Appcelerator are all names to look up for building a hybrid app and distributing to app stores.
Amazon EC2 or RDS can host a database for you which the app can connect to, I'm sure there are many others.
Im doing my final project which is a taxi booking service. i intend to make an ios app for the customer so that they can book a taxi. the request will then be sent to the mysql database (held at the taxi base). i want to no how can i send the information from the app to the datatbase; and the datatbase to send a confirmation message back to the app confirming the taxi has been booked!>>>>>
i have read a lot about web servers but am very confused. can i use an web server e.g. windows home server 2008? any help would be appreciated.
I am not familiar with Windows home server 2008, but I'm pretty much sure that you can use it for your project.
If you want to keep things simple,
Just install XAMPP server which comes with all the components you need to work on this project including PHP and MySQL. It is one of the easiest servers to work with and most of all, its free and open source. http://www.apachefriends.org/en/xampp-windows.html
Then write the business logics inside your Web App using whatever the programming language you want to (for this one PHP would be enough, or choose Java if you want to have a more complex scalable solution). Writing data to a MySQL database using PHP is very easy and you can find ton of tutorials and sample source codes in the internet.
Now your web app is all set, the next step is to expose these services using REST where an iPhone can communicate with your services. Use JSON for interacting with your Web server from iPhone. Again, there are tones of tutorials on how to write a JSON RESTful service using PHP.
Finally in your iPhone app, you can access the service exposed from the server for saving data as well as to retrieve anything from it through JSON. For making this, use a good Objective-C framework such as AFNetworking. It comes with the JSON parser as well. Ref. http://afnetworking.com
Good luck with your project !
RESTful web services are going to be your best friend here.
Create a server side program in django or python or whstever. Connect it to a database (mysql).
You can host it on Amazon Web Services. I think they have windows 2008 instances. I would personally use the amazon linux ami.
Use afnetworking to invoke a get or a post on the server app and you are off to the races.
take a look at this open source taxi project
its work with RESTful web services but its better to forget about Microsoft Windows its better to use Linux hosting for your web service.
I have a local MySQL dev instance that I've been developing with and now I want my local MySQL table changes to be made in the live Google Cloud SQL instance that I have connected in my Google Plugin for Eclipse. I can't figure out how to do this except for a full dump and import. Is there another/better way? Ideally, database versioning would be great, but I don't think that exists with Google Cloud SQL.
I need to develop an application that is hosted in Google App Engine and access mysql database that is hosted in separate server which is not enable RMI or tomcat installed. Data(music files) stored in same server and for music files paths are stored in mysql database. Users can select music category and play them.
Just like - http://www.the-music-collective.com/listen/MP3Player.html
![alt text][1]
My questions are,
What technology I can use to access the mysql database?
Can I upload music files to the server via client interface?
The site you mentioned is using this javascript library:
http://www.schillmania.com/projects/soundmanager2/
and it's wrapped with GWT by JSNI or by library mentioned by stan229: http://code.google.com/p/gwt-sound
You can read more about this here:
http://googlewebtoolkit.blogspot.com/2009/03/giving-your-gwt-application-voice.html
Add 1) According to this two questions:
Can I use a MySQL database with an App Engine applicationand this:
App Engine and MySQL
you can't connect to a mysql database directly, but you can expose web service that will connect you with db.
Add 2) Yes you can upload any files through client. You can use this widget:
com.google.gwt.user.client.ui.FileUpload or this library: http://code.google.com/p/gwt-upload/
Well, you need something server-side. Why not PHP? Will they let you have PHP on that server? You could then write a simple script to give you feeds of data you need. Just be careful and secure it.
Regarding uploading music, you can handle this with PHP as well.
For the Client you will need something like GWT-Sound http://code.google.com/p/gwt-sound/
For the URL you would need to call some kind of server that returns the stream of data from mysql on a GET
how to load the mysql server in android emulator
i.e
Class.forName("com.mysql.jdbc.Driver")
i got the exception java.land.ClassNotFoundException in com.mysql.jdbc.Drive
please reply me.
This assumes MySQL is publicly available from internet, but it is never good idea .
Setup public WebService and connect to it from mobile application.
You won't be able to run MySQL server on an Android device.
What you're doing, however, is trying to load the MySQL client library. That isn't included as part of Android so you cannot load it. You'd need to include the relevant JARs in your project, if you really do want to connect to a remote MySQL database from an Android app.
If you do want to store and access data on your Android device, the awesome SQLite database is included by default, including all the APIs you need to create, upgrade and otherwise interact with SQLite databases.
When I did this I created PHP files for the database operations. I sent data in XML and received data in XML all using PHP scripts. I found this to be the easiest way for me...but you need to know PHP of course.