Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-23-2011, 05:29 AM
|
#1
|
Member
Registered: Mar 2004
Posts: 40
Rep:
|
MySQL remote connections from Windows
Is there any special configuration to allow a remote Windows host to connect to MySQL on my Linux server? In my.cnf I have set the bind-address to the server's IP address.
However, when I run this from the Windows machine (works fine from another Linux machine):
mysql -h serveraddress -u user -p
I get the following error:
ERROR 2017 (HY000): Can't open named pipe to host: serveraddress pipe: mysql (1326)
Any help would be greatly appreciated.
Thanks!
|
|
|
09-24-2011, 01:33 AM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hello,
Can you post your my.cnf file (changing IP addresses and other personal things of course)?
Kind regards,
Eric
|
|
1 members found this post helpful.
|
09-24-2011, 04:56 AM
|
#3
|
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144
|
your problem is known:
- here
- here
read the posts at the bottom of the screen from starting thread:
Quote:
Subject Written By Posted
error 2017: can't open named pipe to host david 04/04/2006 08:40PM
Re: error 2017: can't open named pipe to host Umesh Shastry 04/05/2006 05:42AM
Re: error 2017: can't open named pipe to host Brian Geasa 06/01/2006 12:32PM
Re: error 2017: can't open named pipe to host tikkytikky 01/22/2007 02:38PM
Re: error 2017: can't open named pipe to host edward 01/25/2007 11:23AM
Re: error 2017: can't open named pipe to host chariya punyanitya 01/13/2008 02:23PM
Reinstalling with standard config worked for me David Ashman 01/24/2008 03:44PM
Re: error 2017: can't open named pipe to host Kapil Bulsara 01/07/2008 06:09PM
Re: error 2017: can't open named pipe to host
|
|
|
|
09-24-2011, 01:36 PM
|
#4
|
Member
Registered: Mar 2004
Posts: 40
Original Poster
Rep:
|
My my.cnf is below. Lithos, I don't think those links are applicable here, as those are regarding Windows servers.
Code:
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-external-locking
bind-address = www.xxx.yyy.zzz
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 128K
thread_cache_size = 8
myisam-recover = BACKUP
query_cache_limit = 1M
query_cache_size = 16M
expire_logs_days = 10
max_binlog_size = 100M
skip-bdb
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer = 16M
!includedir /etc/mysql/conf.d/
Last edited by Spetnik; 09-24-2011 at 06:45 PM.
|
|
|
09-24-2011, 03:05 PM
|
#5
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hello,
Can you add the following to the mysqld section, restart the MySQL service and try again:
I'm assuming you're running the MySQL client on Windows from the command prompt right?
Kind regards,
Eric
|
|
|
09-24-2011, 06:46 PM
|
#6
|
Member
Registered: Mar 2004
Posts: 40
Original Poster
Rep:
|
I tried that - no luck.
Yes, I am running it from a windows command prompt.
|
|
|
09-24-2011, 06:56 PM
|
#7
|
Member
Registered: Mar 2004
Posts: 40
Original Poster
Rep:
|
I just tried it with --protocol=tcp and it works. I guess that's okay - do named pipes work with a Linux server?
|
|
|
09-25-2011, 03:45 AM
|
#8
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
Have a look at this easy description and yes, named pipes also work in Linux although there are substantial differences.
http://en.wikipedia.org/wiki/Named_pipe. I find it strange that you get it working when you indicate to use TCP as protocol.
Kind regards,
Eric
|
|
|
09-25-2011, 07:35 AM
|
#9
|
Member
Registered: Mar 2004
Posts: 40
Original Poster
Rep:
|
Based on this, it does not seem like a named pipe connection from a windows client to a Linux server would be possible. Am I correct?
|
|
|
09-25-2011, 07:52 AM
|
#10
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hello,
Normally it shouldn't be an issue referring to the MySQL server. You should be able to connect to MySQL server on Linux from Windows without problems. Can you stop the mysqld service and start it manually with:
Code:
/usr/sbin/mysqld --verbose
then try to connect from Windows to see what turns up. You could also enable logging if you haven't done that already and see if anything turns up in there.
Kind regards,
Eric
|
|
|
09-25-2011, 09:05 AM
|
#11
|
Member
Registered: Mar 2004
Posts: 40
Original Poster
Rep:
|
From my extensive research, it seems that it is not possible for a Windows client to connect to a Linux MySQL server via named pipes. Named pipes seem to be two very different protocols for Windows and Linux. It seems that TCP is the only way to do it.
Thanks for the help
Last edited by Spetnik; 09-25-2011 at 09:47 AM.
|
|
|
09-25-2011, 09:45 AM
|
#12
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
It looks like you're right in that aspect. I've been searching too and came across this page from the MySQL reference manual:
http://dev.mysql.com/doc/refman/5.5/...to-server.html.
Kind regards,
Eric
|
|
|
All times are GMT -5. The time now is 01:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|