Use standard .my.cnf MySQL defaults file to read the
MySQL connection parameters.
Ref T1309
Differential D1237
Allow to read MySQL credentials from my.cnf Authored by dereckson on Nov 19 2017, 05:18. Tags None Referenced Files
Subscribers None
Details
Use standard .my.cnf MySQL defaults file to read the Ref T1309 Tested on TC2 with .tcl sqlconnect sql7 /tmp/my.cnf
Diff Detail
Event TimelineComment Actions Test in TC2 00:18 <dereckson> .s Core 00:20 <dereckson> .tcl sql7 disconnect 00:21 <dereckson> .tcl dict keys [readmycnf /var/run/tc2/.my.cnf] 00:21 <TC2> Tcl: host user password 00:21 <dereckson> .tcl sqlconnect sql7 /var/run/tc2/.my.cnf 00:21 <TC2> Tcl: 00:22 <dereckson> .tcl sql7 "SELECT 1+1" 00:22 <TC2> Tcl: 2 |