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
lmarcilly@stripped 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
/ /|_/ / // /\ \/ /_/ / /__ Gleb.Paharenko@stripped
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.NET
<___/ www.mysql.com