When i try

mysql -h server --port=3306 --protocol=TCP -u user --password=xxx it works!

The real problem is when using stunnel, i have to do as if i will connect to a 
local server... On windows it works but not on linux... :(

-------- Original Message --------
Subject: Re: Socket Problem (20-juil.-2005 13:10)
From:    [EMAIL PROTECTED]
To:      [EMAIL PROTECTED]

> Hello.
> 
> First check if you are able to establish TCP connection to  port
> which is linked by stunnel. Telnet or netcat could be helpful in this
> case. Use --host=xxx --protocol=tcp --port=xxx to explicitly specify
> connection parameters. See:
>   http://dev.mysql.com/doc/mysql/en/can-not-connect-to-server.html
> 
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> > Hi,
> > 
> > i try to use mysql with stunnel (http://stunnel.org) in order to encrypt my 
> > mysql connections. I know that mysql-4.x supports SSL but i can't compile 
> > it on my windows box.
> > 
> > When i try to use stunnel on my windows box, it works,
> > 
> > i just have to use this command :
> > 
> > mysql -u user --password=xxx
> > 
> > and with stunnel, i'm connected to the remote server and communications are 
> > encrypted.
> > 
> > but on my linux box, my stunnel config file is the same as on my windows 
> > box but i've got this message :
> > 
> > Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.
> > sock'
> > 
> > It is normal since i don't have a mysql server on my linux box so this 
> > socket doesn't exists...
> > 
> > I try with --protocol=TCP option but now i have :
> > 
> > Can't connect to MySQL server on "localhost'
> > 
> > Do you have an idea?
> > 
> > Thanks in advance and sorry for my english!
> > 
> > lm.
> > 
> > 
> > 
> > 
> 
> 
> -- 
> For technical support contracts, goto https://order.mysql.com/?ref=ensita
> This email is sponsored by Ensita.NET http://www.ensita.net/
>    __  ___     ___ ____  __
>   /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
>  / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
> /_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
>        <___/   www.mysql.com
> 
> 
> 
> 
> -- 
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]
> 


To: [EMAIL PROTECTED]
    mysql@lists.mysql.com




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

Reply via email to