Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 94838
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: MICHIELB [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 4.027
  • 4.028
Fixed in: (no value)



Subject: Makefile.PL cannot connect to mysq on Windows
I'm checking for problems with Strawberry Perl generation. Show quoted text
>SET
DBD_MYSQL_TESTDB=testdb DBD_MYSQL_TESTHOST=localhost DBD_MYSQL_TESTPASSWORD=... DBD_MYSQL_TESTPORT=3306 DBD_MYSQL_TESTUSER=testuser ... Show quoted text
>perl Makefile.PL
C:\PROGRA~1\MySQL\MYSQLS~1.5\bin\MYSQLA~1.EXE: connect to server at 'localhost' failed error: 'Access denied for user 'ODBC'@'localhost' (using password: NO)' Problem running C:\PROGRA~1\MySQL\MYSQLS~1.5\bin\MYSQLA~1.EXE - aborting ... Result is same if I don't set environment variables. -- Alexandr Ciornii, http://chorny.net
This happens because sub win32_mysql_config is called before sub Configure. -- Alexandr Ciornii, http://chorny.net
On Wed Aug 27 21:46:45 2014, CHORNY wrote: Show quoted text
> This happens because sub win32_mysql_config is called before sub Configure. >
Thanks for your report. I have now added https://github.com/perl5-dbi/DBD-mysql/commit/1f836e365f1bf4099bd79f2468e9d97a5be1b222 which fixes *this* issue but I found two more: * env variable DBD_MYSQL_CONFIG does not work * on Windows, mysql_config is not found if in PATH -- Michiel
Thanks, I pushed this now into master! -- Michiel