I think I need a MySQL code guru...

I am using the 4.0.12 client library on a Win2k host to
connect to a 4.0.13 linux server.

If I connect directly to the server using mysql_real_connect, everything
runs fine.

However, I want to use SSH tunneling.

So I set up a SSHv2 tunneling connection from localhost:3306 to server:3306.

If I use the command line, i.e. mysql -u foo -pbar -h localhost, I can connect to the
remote server via SSH. The same is, if I use tools like SQLyog. But in my program which
call the mysql C API, the program freezes.

I enable the dbug, here is the output. The program hangs at the last line...

Any ideas how to avoid this problem?
Thanks in advance,
Tobias

>my_init
| >my_win_init
| <my_win_init
| exit: home: '(null)'
<my_init
>libmysql_init
<libmysql_init
>my_malloc
| my: Size: 544  MyFlags: 48
| exit: ptr: 4d144c8
<my_malloc
>mysql_real_connect
| enter: host: 127.0.0.1  db: rssvertrieb  user: rss
| info: Server name: '127.0.0.1'.  Named Pipe: MySQL
| error: host: '127.0.0.1'  socket: ''  named_pipe: 0  have_tcpip: 1
| info: Server name: '127.0.0.1'.  TCP sock: 3306
| >vio_new
| | enter: sd=1140
| | >my_malloc
| | | my: Size: 84  MyFlags: 16
| | | exit: ptr: 4d124b0
| | <my_malloc
| | >vio_reset
| | | enter: type=1  sd=1140  localhost=0
| | <vio_reset
| <vio_new
| >my_net_init
| | >my_malloc
| | | my: Size: 8199  MyFlags: 16
| | | exit: ptr: 4d14720
| | <my_malloc
| | >vio_fastsend
| | | exit: 0
| | <vio_fastsend
| <my_net_init
| >vio_keepalive
| | enter: sd=1140, set_keep_alive=1
| <vio_keepalive
| >vio_is_blocking
| | exit: 1

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to