Data export from CE thingsboard - postgresql

Hi dear friends i want to send data from my ce thingsboard server to another Web server with post model anybody there can help me to solve this issue. And my another problem i want to access postgresql database from outside how i can, regard.

You could do this using Rulechains. There is Rulenode called REST API Call:
https://thingsboard.io/docs/user-guide/rule-engine-2-0/external-nodes/#rest-api-call-node
First make sure the Postgresql Database is accessible via remote, then connect with a client of your choice e.g. pgAdmin, DBeaver..,
https://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html

Related

Crystal Report is keep asking for username and password

I have created an crystal report which connects with the ADO.net data set. It is working fine at my system.However when I am trying to use the same report in another machine.It is asking for database log in. Please help to resolve this issue. Feel free to ask if you need any more information regarding this issue.
Thanks
You have probably setup the connection to your database using pass-through authentication (or "Trusted Connection"). When running locally it's connecting as you, but when running on the server it's trying to connect to the database as the user that it's running as (probably a local user account).
Instead, create a new user on your database server and give it access to your DB. Then change your connection string to be something like:
Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;
and with a bit of luck you'll be in.
you can solve this error by:
1-get the data from database
2-store this data in dataset
3-set the datasource of report to dataset
4-show the report

How do you get data from a remote MySQL database into your app?

Have just finished a couple of tutorials regarding populating a SQLite database with data and then using this data within your app.
However none of these tutorials show how to connect to a remote server in order to obtain data.
QUESTION:
How do you get data from a remote MySQL database into your app??
What options do you have?
Remote access is not a good idea, you would have to allow everyone to access it since it's an app. The best way to go about this is to build a layer between your app and database. From the app you would access a server side script which does the database work and responds to your app.
Well there are methods to allow remote access to your mysql database on your server and being able to query the database remotely. I think this is the cleanest solution. Check out this link: http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html

how to access database without webservice?

I am developing an iphone application and need to access Oracle/SQL database that installed on a server, and I dont want to develop a web service to read/write data, is there any other way to access the database?
Connecting to a remote DB directly from an iPhone/iPad App is a very bad idea. Imagine someone with a jailbroken iPhone and a simple packet sniffer.... It would be incredibly easy to compromise the security of your Database.
The best way to acomplish this is to wrap it in php via a web server on your remote Database server. You can then run a query on the DB with a simple http POST request and have the page return xml/json/whatever.
You could look through CocoaMySQL-src for some other ideas though. I think the project is dead/no longer active, but the code might still be useful.

how to send database data to a MySQL server to update the server database

I am developing Smoking counter and I need to send all the smoking record (about the time user smoking) to database on the server. The server database is MySQL database. I knew that I must have send data to PHP page/script, and this page/script will run on the data to insert record to database.
I would like to know: is there another way to update database, because I don't have knowledge about PHP. I used to work on java and c/c++/objective-c. If you know another way to do this task, please let me know.
Any help would be appreciated.
If you already know Java, C and C++, then you should be able to learn how to write your php script really quickly, just google a tutorial.
While could run a Java server using a servlet to insert the data, PHP is far easier to deploy, and you should only need to write a few lines of code.
I you do use PHP though one thing to remember when inserting to your database is to run all your parameters to add through mysql_real_escape_string
Edit:
To give an example, this script when configured would insert a name and location to a database:
<?php
$link = mysql_connect("hostname", "username", "password");
mysql_select_db("databasename");
$location = mysql_real_escape_string($_POST['location']);
$person = mysql_real_escape_string($_POST['person']);
mysql_query("INSERT INTO mytable(location, person) VALUES('{$location}', '{$person}')");
mysql_close($link);
?>
You may use any server side solution you like which has a MySQL interaction class library, e.g. Java servlet or C/C++ CGI application. You will also need a web server (e.g. Apache or Apache Tomcat) which will take care of HTTP requests.
PHP is not the only way to write programs which use MySQL.
You can you this API hosted on github.com .
https://github.com/gwdp/Obj-c-MySql
It's free and very well documented .

Problem to accessing Mysql remote database

First m very sorry!! for that i m asking question again related to accessing data from server.
i am new in iphone and am making a application in which require to access mysql database which is hosted on remote server,
I take a server and create our database on the server
so i have URL of the server,User Name,Password,Port Number.
I make a servlet for accessing data from the server database and generate the xml file.
I make my application and with the use of xml parser i use the data in my application.
but problem is this,
where i put my servlet which give xml file when required in my application,
On the Server?
In the Application?
i m confuse how i use servlet in my application.
If u have any reference or source code then please suggest.
Thanks,
Arun
It probably would be better to put it in the application so that your reducing the need to call the server for the details.