Page MenuHomeDevCentral

Allow to read MySQL credentials from my.cnf
ClosedPublic

Authored by dereckson on Nov 19 2017, 05:18.
Tags
None
Referenced Files
F3768398: D1237.id3177.diff
Sat, Nov 23, 07:46
F3768248: D1237.id3185.diff
Sat, Nov 23, 07:14
F3768136: D1237.id3184.diff
Sat, Nov 23, 06:46
F3767753: D1237.diff
Sat, Nov 23, 03:19
Unknown Object (File)
Wed, Nov 20, 00:07
Unknown Object (File)
Tue, Nov 19, 12:58
Unknown Object (File)
Tue, Nov 19, 05:01
Unknown Object (File)
Mon, Nov 18, 18:19
Subscribers
None

Details

Summary

Use standard .my.cnf MySQL defaults file to read the
MySQL connection parameters.

Ref T1309

Test Plan

Tested on TC2 with .tcl sqlconnect sql7 /tmp/my.cnf

Diff Detail

Repository
rVIPER ViperServ scripts
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
sqlconnect (branched from master)
Build Status
Buildable 1961
Build 2209: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Nov 21 2017, 00:23
This revision was automatically updated to reflect the committed changes.
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