TCP / IP访问 [英] TCP/IP access

查看:50
本文介绍了TCP / IP访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关如何使用

TCP / IP登录和访问数据库的信息。我不想使用MyODBC或J或.NET或其他任何东西,我不希望
想要telnet并使用shell ...我只是想通过端口发送东西并且

得到回复。


据我所知,我将不得不剖析libmysql.c。好的,但是

还没有人做过这个吗?无论如何,它到底在哪里?没有

我可以找到的档案中包含任何源代码。

-

-SHAWN-

解决方案

Shawn Fessenden写道:

我正在寻找有关如何使用
TCP登录和访问数据库的信息/ IP。




您可以使用mysql命令行客户端执行此操作。如果你想连接

到远程计算机:

mysql -h remote.address.example -u username -p


>你可以用mysql命令行客户端做到这一点。


感谢您的回复,但这正是我想要避免的事情。

我只是想使用原始的TCP / IP。

-

-SHAWN-


Shawn Fessenden写道:

我正在寻找有关如何使用TCP / IP登录和访问数据库的信息。我不想使用MyODBC或J或.NET或其他任何东西,我不想远程登录并使用shell ...我只想通过端口发送内容并且
得到答案。

据我所知,我将不得不剖析libmysql.c。好的,但
还没有人做过这个吗?无论如何,它到底在哪里?我找不到的档案中没有任何源代码在''em。




你想做的事情不是一件好事。


TCP / IP是一种通信协议 - 不是shell或数据库

应用程序。可以把它想象成一艘载有容器的船只,没有打开容器的能力。结果你想做什么

是不支持的,也不可能得到支持。


当然如果你拥有 ;服务器和客户端将使用您的

数据库并且都在开源操作系统上运行,您可以修改服务器和客户端的TCP / IP代码,以便

TCP / IP可以识别并正确处理数据库请求。


这是一个坏主意。首先,对于服务器或

客户端使用的每个操作系统,您都需要唯一的代码

。任何时候任何一个操作系统升级

你将不得不测试和验证你的TCP / IP代码,并可能

修改它。


另一方面,运行您自己的TCP / IP版本可能会妨碍您的客户能够与其他服务器进行通信,并且

甚至可能阻止您的服务器与之交谈其他客户。


HTH


Jerry


I''m looking for information on how to log on and access a databases using
TCP/IP. I don''t want to use MyODBC or J or .NET or anything else, I don''t
want to telnet and use a shell... I just want to send stuff over a port and
get an answer back.

As far as I understand it, I''m going to have to dissect libmysql.c. Ok, but
hasn''t somebody already done this? And anyway, where the heck is it? None of
the archives I can find have any source code in ''em.
--
-SHAWN-

解决方案

Shawn Fessenden wrote:

I''m looking for information on how to log on and access a databases using
TCP/IP.



You can do that with mysql command line client. If you want to connect
to remote computer:

mysql -h remote.address.example -u username -p


> You can do that with mysql command line client.

Thanks for your reply, but that''s exactly the kind of thing I want to avoid.
I just want to use raw TCP/IP.
--
-SHAWN-


Shawn Fessenden wrote:

I''m looking for information on how to log on and access a databases using
TCP/IP. I don''t want to use MyODBC or J or .NET or anything else, I don''t
want to telnet and use a shell... I just want to send stuff over a port and
get an answer back.

As far as I understand it, I''m going to have to dissect libmysql.c. Ok, but
hasn''t somebody already done this? And anyway, where the heck is it? None of
the archives I can find have any source code in ''em.



What you want to do is not a good thing.

TCP/IP is a communications protocol -- not a shell or a database
application. Think of it as a ship carrying containers with no
ability to open the container. As a result what you want to do
isn''t supported and isn''t likely to be supported.

Of course if you "own" the server and clients that will use your
database and both run on an open source operating system you can
modify the TCP/IP code for your server and your clients so that
TCP/IP can recognize and properly handle database requests.

This is a bad idea. For one thing, you will need unique code
for every operating system used by either your server or your
clients. Any time the operating system of either is upgraded
you will have to test and validate your TCP/IP code and possibly
modify it.

For another, running your own version of TCP/IP may preclude
your clients being able to communicate with other servers and
perhaps even preclude your server talking to other clients.

HTH

Jerry


这篇关于TCP / IP访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆