In mysql client, it used to show possible words when I press tab. Somehow it is not working now. Is there anyway to enable it again. I'm using mysql client 5.5 in CentOS 5.5.
Asked
Active
Viewed 6,358 times
1 Answers
10
found the solution.
in my.cnf file, add
[mysql]
auto-rehash
add no-auto-rehash
to disable auto completion.

thavan
- 2,409
- 24
- 32
-
1That's what the docs say, but this doesn't work for me at all. I've tried writing `[mysql] auto-rehash` in `my.ini` and supplying `--auto-refresh` to the `mysql` command line program, to no effect. – mcandre Mar 19 '13 at 13:42
-
-
-
@mcandre the above solution worked well with linux. I'm not sure about windows :) – thavan Mar 21 '13 at 03:51
-
The completion in mysql client relies on the readline library, which is ubiquitous on linux/unix systems, but rarely found on windows systems. If you installed cygwin, mingwin or similar, and used the mysql shell inside those environments, you would get command completion. I'm not sure about getting a 'native' readline library for windows, but I suspect it would not help since the windows mysql client would not have been compiled against it. – sirlark May 23 '13 at 10:13
-