Titanium with a remote database - mysql

How is it possible to connect my Titanium project with a external / remote database.
Most tutorials and information I see are about local databases.
I just want to connect with an external online database so I could update a record.
Regards

You can get and set information in a mysql database if you write some php and hit up those urls, appending them with values to set, returning values to get.
See Gregor's post here; https://developer.appcelerator.com/question/51201/how-to-create-mysql-query-from-titanium-mobile

Related

How to replicate data from my local phpmyadmin mysql database to godaddy cpanel mysql database?

I am having a MySQL database in my local machine (in XAMPP) that I access using phpmyadmin. I also have a website hosted on Godaddy. I generally stay offline and make changes into data stored into database.
I want to know how can I auto replicate the changes in local database to the one in Godaddy's server or can replicate using click of a button.
I have seen some answers that told about replication but I am unable to replicate data from my local machine to the Godaddy's server.
Can anyone please tell me the steps to replicate database in simplest way.
Thank you in advance!
After lot of searching and learning, I finally found an answer to this question.
On shared hosting, Godaddy do not provide access to the configuration files of mysql (my.ini). So the replication of data is not possible using master slave replication from local(master) to remote(slave) MySQL.
The only thing that can be done is, one can create a log file of all the data that are being entered into database while the user is offline (maybe a XML file) which contains the data that is not transfered to the global database, and can upload the file when connected to the internet and parse the XML to send data to the global database.

Connecting Symfony website to Amazon relational database

I am working on a symfony website and I want to connect it to a remote RDS on amazon on which i will be running some Select queries to fetch some data every time page refreshes.
Is there an easy way to do so? I was reading something about doctrine but I didn't get it how to get it to use a remote database. Is it possible to do without using doctrine?
Amazon RDS is a meta-layer to manage the database server itself. I assume you want to create a database, e.g. in MySQL, on Amazon RDS and use this database with Symfony and Doctrine.
If this is true, it is very simple: In your app/config/parameters.yml file, you have various database_* parameters. Just set the database_host to the IP address or domain of your DB server as provided by Amazon, set the correct user/password/port, and you're ready to go.

How split MySQL database into multiple host, keeping remote references

I'm developing a web application that will handle user and data.
One requirement for this project is that the data collected must be stored in another host than the one with webserver.
My first idea was to deploy a single database with user data, login info and preferences all together into one host and keep the webserver into another one, using remote connection for each query. But this is not required, only user data must be stored in a remote host and other info can be locally accessed by webserver.
Does exists a way to manually split a MySQL database in two different host leaving to the framework to keep remote reference and coherence?
I think you can do this:
Can MySql 5.0 have a view of a table located on another server
In the local DB define the view of the table you want to be remotelly hosted.

Differences between SQLite and MySQL - login and security

At first I searched in Stack Overflow about the difference between MySQL and SQLite. So there is some answers but still I want to know something. When accessing MySQL I need to give host, username, password and database parameters. But when accessing SQLite I just give database name. Can anyone explain me this why, and for security reasons also, should not be there password for SQLite database, can not be it just downloaded for example from server, so I am totally stuck. So need your help.
The difference is that MySQL is a database server, while SQLite is a database engine that works against single database files.
You are correct that the SQLite database file could just be downloaded if it's placed right in the web application where anyone can reach it.
Most server providers offer a folder where you can place files like this, so that the web application itself can reach it, but it's not directly downloadable.
You can also optionally add protection to the SQLite database file. See this question:
Password Protect a SQLite DB. Is it possible?
SQLite is mainly used for mobile and tablet apps.So they are just used for a single system.
But in MySql its a complete database and can be used from multiple system. So for increasing security ,we have to give all these. So that no one can misuse the data...
SQLite is just a file. If you have read access to the file that is the implicit security model (as well as the possibility to use database encryption).
MySQL is a network service. It can listen on an internet facing socket, meaning anyone in the world can access it if they have the right authentication credentials.
SQLite is file based, MySQL is a service which runs on the server. With SQLite you don't need to enter the database name, but actually the database file.
If you put the database file at an inaccessible location, you should be totally fine and the user will not be able to download the file.

Figuring out MySQL data information on an ec2 instance

I installed MySQL on an EC2 instance and need to get some information about that database so I can setup pligg on it.
The info it needs are: Database Name, Username, Password, Database Server and Table Prefix. Is there a simple way to retrieve this information? I assume I need to use PuTTy but I couldn't find specific info on it.
Thanks
The database server is most likely to be localhost and the rest are values that you must set. The docs for whatever application you are installing should give a tutorial on how to create these.
You might find phpMyAdmin useful if the application provides a SQL script to run and you don't want to use the command line.