I would like to use tab completion when using the MySQL REPL accessed by running wp db cli. However it doesn't seem to work, even though my ~/.my.cnf file contains this content:


If I use the mysql command directly, tab completion does work.

Running wp db cli --defaults doesn't seem to fix the problem.

  • As a workaround, type \# and press enter in the MySQL REPL. That should enable tab completion.
    – Flimm
    Feb 8 at 15:37


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.