Danny Rice via Cygwin writes: > With a dsn like > > $dsn = > "dbi:mysql:mysql_ssl=1;mysql_read_default_file=test.cnf;mysql_read_default_group=test_group"; > $dbh = DBI->connect($dsn); > > seemingly fails to read the host from [test_group] in test.cnf. Adding a > valid host=host_name to the $dsn succeeds in reading the user, password etc > from test.cnf and the connection succeeds > > This has been an issue since at least 2020 and I've had to just specify the > host in the $dsn on cygwin.
I fail to see how this can be caused by DBD::mysql, so it's more likely that the DB itself is the culprit (you might want to check if that's a known issue with the versions available in Cygwin, whilch are almost certainly older than the ones on Linux). Anyway, I'll just note that the examples of this sort of DSN I've seen reverse the two keys: $dsn = "dbi:mysql:mysql_ssl=1;" . "mysql_read_default_group=test_group;" . "mysql_read_default_file=test.cnf"; so maybe give that a try. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple