xtstat doesn't use my.cnf

Bug #309424 reported by Andrew Garner
2
Affects Status Importance Assigned to Milestone
PBXT
Fix Committed
Wishlist
Unassigned

Bug Description

xtstat forces the user to specify connection parameters on the command line (or use the baked in defaults). It would be nice if it would use the settings in the user's my.cnf. I've attached a simple patch against bin/xtstat_xt.cc to use the mysql_options() MYSQL_READ_DEFAULT_GROUP="xtstat" option, so defaults will be pulled in via the standard my.cnf mechanism in mysql.

Related branches

Revision history for this message
Andrew Garner (muzazzi) wrote :
Changed in pbxt:
status: New → Confirmed
Changed in pbxt:
importance: Undecided → Wishlist
Revision history for this message
Vladimir Kolesnikov (vkolesnikov) wrote :

Thanks for the patch!

In order to make use of the standard configuration file one has to create [xtstat] section it it and fill it with the standard connection options like "socket", "host", etc...

Changed in pbxt:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.