Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to communicate with a MySQL server?

I am going to be using C/C++, and would like to know the best way to talk to a MySQL server. Should I use the library that comes with the server installation? Are they any good libraries I should consider other than the official one?

like image 434
Ed. Avatar asked Aug 22 '08 17:08

Ed.


People also ask

How does the MySQL server communicate with you?

The server listens for connections on a TCP/IP port or a local socket. When a client connects, a handshake and authentication are performed. If successful, the session begins. The client sends a command, and the server responds with a data set or a message appropriate for the type of command that was sent.

What is the correct way to connect to a MySQL database?

To connect to the database server, confirm that the MySQL Database Server is running on your machine, right-click the Databases > MySQL Server node in the Services window and choose Connect. You might be prompted to supply a password to connect to the server.

What provides connection to the MySQL server?

The mysql command-line client is typically located in the bin directory of the MySQL's installation folder. If the mysql program is already in the PATH , you can simply invoke it using mysql command. -u root means that you connect to the MySQL Server using the user account root .

What communication protocol does MySQL use?

5 Connection Transport Protocols. For programs that use the MySQL client library (for example, mysql and mysqldump), MySQL supports connections to the server based on several transport protocols: TCP/IP, Unix socket file, named pipe, and shared memory.


1 Answers

MySQL++

like image 156
FreeMemory Avatar answered Nov 04 '22 14:11

FreeMemory