• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

MySQL server communications / commands via a TCP/IP client???

I have a MySQL server on a network and I have a TCP/IP client that can send text and receive text strings.

Is it possible to have the TCP/IP client send a connection command, then and insert command?
0
keith1001
Asked:
keith1001
  • 2
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
No.  MySQL has it's drivers and communications protocols.  You can not connect directly to it with something like telnet.  You can, in theory, connect to the server with telnet or SSH and run the 'mysql' command line program.

If you are using a programming language, you can use the appropriate MySQL driver and connect that way.  See the list here: https://www.mysql.com/products/connector/
0
 
F PCommented:
You need to be able to connect on port 3306 using the "TCP/IP Client" you mentioned. I don't know what specifically that "Client" is, but if it supports any of these connectors listed:

https://www.mysql.com/products/connector/

... then sure. I don't see why it couldn't. You might also want to checkout Mirth Connect:

https://www.mirth.com/Products-and-Services/Mirth-Connect

Which only charges for support, but is designed to bring interop to differing systems into a single java interface. The community edition and your own code is free if there isn't already something built to work.
0
 
keith1001Author Commented:
@dave that could possibly work.  My client app though is limited, it can only send strings and receive strings.

So are you saying I could just connect, then send a MySQL login command(String) and then wait a few seconds and then send the INSERT sql command (string)?
0
 
keith1001Author Commented:
@dave, I tried Telnet but got bergish (I assume binary) back and could not do anything at all.
0
 
Dave BaldwinFixer of ProblemsCommented:
That is correct, you can Not connect directly to MySQL.  You need to login to that machine with a valid user login and run the 'mysql' command line program (which is a utility program, not the server daemon).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now