on 3/10/03 9:24 AM, Pete Harlan at [EMAIL PROTECTED] wrote: > If you want to connect to localhost via TCP/IP, you have to specify > the host by IP address (127.0.0.1), not as "localhost".
Tried that, it doesn't work. In my case, I call ssh like this: ssh -n -N -L 3307:foo.bar.com:3306 foo.bar.com and mysql like this: mysql -h 127.0.0.1 --port=3307 --user=username The user "username" has complete access privileges, both from "localhost" and any other host. I would agree that if you specify -h, you *never* mean to use the local socket. > That's potentially dangerous and not completely obvious side-effect of > tunneling SSH ports. Yes, I'm aware of this, but thank you for pointing it out. -- Rick --------------------------------------------------------------------- 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