General information about SQL (server, port, etc.)

Can you please explain in simple terms what a server for sql is, what a port and localhost are. Why can’t we just install a DBMS and create a new database, table, etc., but must create a new connection.

Another question is why, when creating a new connection, we select a driver (for example, either Clickhouse or postgresql, etc., aren’t they a DBMS themselves?

Thanks in advance! 🙂

I tried to read online but I don’t understand.

>Solution :

SQL Server:- A server for SQL (Structured Query Language) is a computer program that manages access to a database. It’s responsible for storing and retrieving data, as well as allowing users and applications to interact with the database by sending queries written in SQL.

Port:- A port is a communication endpoint that enables a computer to send and receive data over a network. In the context of SQL servers, a port number is typically used to specify which port the server should listen to for incoming connections.

LocalHost:- Localhost is a hostname that refers to the current computer you’re working on. When you connect to a SQL server on localhost, you’re connecting to a server running on the same computer you’re currently using.

So, when you install a DBMS (Database Management System) like MySQL or PostgreSQL, you are creating a server that can manage one or more databases. However, to access the data stored in those databases, you need to create a new connection to the server. This connection specifies details like the hostname of the server, the port number to use, and any authentication credentials needed to access the server.

Let know if it is helpful or not.
Happy to help

Leave a Reply