[EMAIL PROTECTED] wrote:
> 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.
>>>
>>>
>>>
>>>
>>
Readed fast the whole story so if this is out of topic please forgive me.

MySQL on Linux connect to the server using the socket by default.

i.e. a connection issued with "mysql -hlocalhost" will never touch network.

To connect using network you need to specify a network address like:

mysql -h127.0.0.1
^^^^^^^^^^^^^^^^^

On windows the socket doesn't exist so it use networking ... and work.

HIH
Francesco Riosa

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

Reply via email to