darist has asked for the wisdom of the Perl Monks concerning the following question:
and this is what my script looks like:socket = C:/temp/mysql.sock enable-named-pipe skip-networking
Note: I didn't include the C: in the string because it thinks what comes after the ":" is the host name.my $dsn = 'DBI:mysql:mydb;mysql_socket=/temp/mysql.sock'; my $db_user_name = 'user'; my $db_password = 'password'; my $dbh = DBI->connect($dsn, $db_user_name, $db_password);
Does DBD::mysql support named pipes? Do you know if it understands that "/" is actually "C:\"? If not, how do I tell it to look in C:?DBI connect('mydbmysql_socket=/temp/mysql.sock','user',...) failed: Can't connect to MySQL server on 'localhost' (10061) at myscript.pl l +ine 60
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Connect to MySQL server on Windows using named pipe (perl DBD::mysql)
by umasuresh (Hermit) on Oct 26, 2010 at 18:50 UTC | |
by darist (Initiate) on Oct 27, 2010 at 03:57 UTC | |
|
Re: Connect to MySQL server on Windows using named pipe (perl DBD::mysql)
by aquarium (Curate) on Oct 27, 2010 at 03:09 UTC |