gh-ost icon indicating copy to clipboard operation
gh-ost copied to clipboard

enhancement: support more my.cnf client features

Open superawesome opened this issue 3 years ago • 1 comments

I support a lot of different databases and DB servers, and it would be really convenient if gh-ost could make better use of my.cnf config files. Specifically:

  1. Reading hostnames and database names from the [client] block. Preferably, if a -host and/or -database flag is also passed, then that would override whatever is in the file. Right now, it ignores these lines altogether.

  2. Support the mysql "--defaults-group-suffix=" flag. This flag lets you have multiple [clientXXXX] blocks in your my.cnf, and choose which one to use. Right now gh-ost only supports the default [client] block with no suffix, which makes it more painful to use when working on multiple servers/clusters.

In its current form, gh-ost is somewhat awkward to use while working with multiple (unrelated) DB servers, because you need a different config file for each one and can't save DB names and hostnames in it. This would help us out a lot with that.

Cheers!

superawesome avatar Mar 17 '23 23:03 superawesome

I can't figure out how to (or don't have access to) add labels to this, sorry. So I put it in the subject... it's an enhancement idea/request.

superawesome avatar Mar 17 '23 23:03 superawesome