Re: DBD::mysql not reading host from config file

2024-07-27 Thread ASSI via Cygwin
Danny Rice via Cygwin writes: >> it's more likely that the DB itself is the culprit > > In what way do you mean? As mentioned, it reads all the option data from > the config file (except host) and connects without issue as long as you > supply host in the dsn. Again, the client library (not DBI) p

Re: DBD::mysql not reading host from config file

2024-07-27 Thread Danny Rice via Cygwin
> > it's more likely that the DB itself is the culprit In what way do you mean? As mentioned, it reads all the option data from the config file (except host) and connects without issue as long as you supply host in the dsn. The cygwin command line mysql command reads all the options, including hos

Re: DBD::mysql not reading host from config file

2024-07-26 Thread ASSI via Cygwin
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 suc

DBD::mysql not reading host from config file

2024-07-25 Thread Danny Rice via Cygwin
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