mysql.exe ERROR 2005 (HY000): Unknown MySQL server host 'loc

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Romeo Petruca

mysql.exe ERROR 2005 (HY000): Unknown MySQL server host 'loc

Post by Romeo Petruca »

Hi,

Fedora 14, wine version 1.3.18

when i try to connect to linux mysql server with command line:
wine mysql.exe -h localhost -u root -p
i got this error:
ERROR 2005 (HY000): Unknown MySQL server host 'localhost' (10093)
with this command line is all ok.
wine mysql.exe -h 127.0.0.1 -u root -p
linus hosts file /etc/hosts:
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
SQLyog is working fine with both "localhost" and "127.0.0.1"

thanks !




--
Str. Muntenia, nr. 2A, bl. D2, apt. 48
Hunedoara
mobil : 0720301842
tel. : 0354401534
e-mail: [email protected]
[email protected]
[email protected]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: mysql.exe ERROR 2005 (HY000): Unknown MySQL server host

Post by vitamin »

Romeo Petruca wrote:wine mysql.exe -h localhost -u root -p
First of all, why are you using windows' version or 'mysql' client and not native Linux version?
Romeo Petruca wrote:i got this error:
ERROR 2005 (HY000): Unknown MySQL server host 'localhost' (10093)
Most likely it's trying to use pipe and fails of course. Add '--protocol=TCP' option.
Locked