On Mon, May 20, 2002 at 10:10:04AM +0800, Patrick Hsieh wrote: > Hello list, > > I am planing to write a script to telnet mysql server(port:3306) and > try to verify the server status. When I try something like this: > > home:~ #telnet localhost 3306 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > , > 3.23.49-log?m>|zn:u`^,Connection closed by foreign host. > home:~ #
I'd recommend against that. Don't reinvent the wheel. Use the existing C library (or a wrapper around it, like Perl's DBI) to do it. You'll save yourself the hassle of having to adapt your code as the client/server protocol in MySQL changes. Jeremy -- Jeremy D. Zawodny | Perl, Web, MySQL, Linux Magazine, Yahoo! <[EMAIL PROTECTED]> | http://jeremy.zawodny.com/ --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php