irk2adm
irk2adm

Reputation: 33

How do I enable autocomplete in MariaDB?

  1. Created file~/.my.cnf
[mysql]
auto-rehash
  1. Restarted the daemon
  2. Autocomplete does not work

Upvotes: 3

Views: 3771

Answers (1)

Raymond Nijland
Raymond Nijland

Reputation: 11602

How do I enable autocomplete in MariaDB?

You don't need to enable it..

Using mysql

The command to use mysql and the general syntax is:

mysql <options>

Options

mysql supports the following options:

--auto-rehash

Enable automatic rehashing. This option is on by default, which enables database, table, and column name completion. ... ... To complete a name, enter the first part and press Tab. If the name is unambiguous, mysql completes it. Otherwise, you can press Tab again to see the possible names that begin with what you have typed so far. Completion does not occur if there is no default database.

see the manual

Upvotes: 2

Related Questions