Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi connect to online sql database

This question may be very easy but I really cannot find a real answer online. I already know that I can connect to a sqlite database stored in my computer with FireDac but now I want to move on an online sql server.

I own a domain with a sql server inside.

enter image description here

This is my configuration and it tells me Unknown configuration host. I need to connect to my sql database online. Is FireDAC the real solution?


I have this kind of connection string server-side:

$pdo = new PDO('mysql:host=mysql.netsons.com;dbname=caorobwq_worldcup', 'username', 'password');
like image 544
Raffaele Rossi Avatar asked Sep 20 '16 23:09

Raffaele Rossi


People also ask

How do I connect to an SQL database online?

Start the SQL Server, in the dialog window for the Server name enters the name of the instance that you want to connect with. From the Authentication drop down box, select the SQL Server Authentication and for the field Login and the Password enter your credentials then click the Connect button.

What database does Delphi use?

InterBase is an embeddable SQL database that integrates natively to Delphi and C++Builder for client/server or embedded development.

How to connect MS SQL Server database with Delphi using FireDAC?

In this article we will connect MS SQL Server database with Delphi using FireDAC. We will go through code to make database connection. Go to Delphi IDE and select File -> New -> VCL Form application - Delphi

How to make database connection in Delphi?

We will go through code to make database connection. Go to Delphi IDE and select File -> New -> VCL Form application - Delphi

Is Delphi for Win32 VCL database development available on Lulu?

Bob Swart has published Delphi for Win32 VCL Database Development on Lulu, if you need any help. Show activity on this post. Don't forget that MySQL's client dll are GPL-ed, and if you are using it to connect to server, your app must be GPL-ed.

What is Local SQL and how does it work?

Local SQL works with any data source that can be loaded into a TDataSet (e.g. CSV files or queries from multiple databases) to produce a virtual database that can have SQL run against it. - Ideal for data migration and consolidation.


1 Answers

You can connect to such server, but you should not expose it this way. Create another, application layer that will use your database server as a local storage. It's called three tier architecture.

enter image description here

like image 125
Victoria Avatar answered Oct 15 '22 05:10

Victoria