Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / May 2005

Tip: Looking for answers? Try searching our database.

mysql and named pipes

Thread view: 
Paul Battersby - 03 May 2005 05:27 GMT
I'm using Win2000 and I want to use named pipes instead of a TCP/IP
connection to MySql.

I'm using the following connection string:

jdbc:mysql://localhost/?enable-named-
pipe&socket=MySQL&socketFactory=com.mysql.jdbc.NamedPipeSocketFactory

And I get the following error:

java.io.FileNotFoundException: \\.\pipe\MySQL (The system cannot find the
file specified)

Any idea what I'm doing wrong?
Mark Matthews - 03 May 2005 17:00 GMT
> I'm using Win2000 and I want to use named pipes instead of a TCP/IP
> connection to MySql.
[quoted text clipped - 10 lines]
>
> Any idea what I'm doing wrong?

Paul,

You need to start the server with --enable-named-pipe.

Regards,

    -Mark

Signature

Mark Matthews
MySQL AB, Software Development Manager - Connectivity
www.mysql.com

Paul Battersby - 03 May 2005 18:51 GMT
> You need to start the server with --enable-named-pipe.

When I open up MySql Administrator, under Service Control/Configure
Service/Server Features the "named pipes" option is checked (mysql has been
started and stopped many times since this was first set) .

I looked in the my.ini file and saw no mention of named pipes so I added the
line.

 enable-named-pipe

and now it works.

Thanks.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.