FreddysHouse  

Go Back   FreddysHouse > Techie Discussion

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11th May 2004, 10:10 AM
fatbusinessman's Avatar
Scrounging Bastard
 
Join Date: 22nd Dec 2003
Location: Cambridge
Posts: -
fatbusinessman is on a distinguished road
Port tunnelling - MySQL/SSH

Ok, here's a reasonably in-depth techie question for you guys:

I'm trying to connect to a MySQL database over a SSH port tunnel. I've got port 1984 on my local machine forwarding to port 3306 on the remote host. I know I've got the port forwarding mechanism right, because I can forward to other ports (specifically, port 80) without any problems. However, when I try to connect to the MySQL database I get the following error:
Code:
ERROR 2013: Lost connection to MySQL server during query
Anyone got any ideas why this is happening? I've tried searching Google and the MySQL site, but to no avail...

(Addendum: I'm using Windows/PuTTY for this, but I've tried it under Linux using the default SSH client, and I get the same error)
__________________
Mmmm..................pie.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11th May 2004, 10:32 AM
Shovel's Avatar
One of Freddy's beloved
 
Join Date: 22nd Dec 2003
Location: London, UK
Posts: -
Shovel has a spectacular aura aboutShovel has a spectacular aura about
This is just theorising:

Presumably you can format direct to the mySQL port? You don't have to forward to another port on the server for the SSH connection and then have something else on top to hook up to mySQL? I guess you can (in theory) due to it working with port 80, but it might be worth trying if such a thing exists.

Alternatively, try mySQL on a different port?
__________________
http://ben-ward.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11th May 2004, 01:47 PM
Throdgrain's badger bait
 
Join Date: 22nd Dec 2003
Location: London
Posts: -
Clown is a splendid one to beholdClown is a splendid one to beholdClown is a splendid one to beholdClown is a splendid one to beholdClown is a splendid one to beholdClown is a splendid one to beholdClown is a splendid one to behold
What's addendum?
__________________
http://its-easy-its-fast.clowneh.co.uk/
Partner in Prime.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11th May 2004, 01:49 PM
Shovel's Avatar
One of Freddy's beloved
 
Join Date: 22nd Dec 2003
Location: London, UK
Posts: -
Shovel has a spectacular aura aboutShovel has a spectacular aura about
*sigh*
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11th May 2004, 02:11 PM
fatbusinessman's Avatar
Scrounging Bastard
 
Join Date: 22nd Dec 2003
Location: Cambridge
Posts: -
fatbusinessman is on a distinguished road
Ok, problem now solved

Something I really should have noticed earlier - my.cnf had the 'skip-networking' directive , but the command-line didn't pick this up because that tries to use pipes by default. So got rid of that and I'm now sorted
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  FreddysHouse > Techie Discussion

Tags
mysql or ssh, port, tunnelling

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ld on port within same area Elendar Technical Help 13 27th November 2004 05:35 PM
ml 10 port spoted Slapya Hibernia 2 30th September 2004 02:43 PM
Deadly PS2 port? babs Techie Discussion 1 4th May 2004 06:48 PM
Port forwarding with Belkin router? granny Techie Discussion 11 20th April 2004 12:52 AM
Cant port to house ??? Damon_D Technical Help 4 9th February 2004 11:01 PM


All times are GMT +1. The time now is 10:51 PM.


Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright (c) 2003-2008, Freddy. All rights reserved.
Page generated in 0.32481 seconds with 14 queries using server 193.138.95.50

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109