I gave SELECT
privilege to a user on a particular database, Now whenever I try to connect remotely
$ mysql -h ip-of-remote -u username -p
with that user credentials and try to change the database it takes to long to get Database changed while it connects (goes mysql prompt) very fast
mysql> USE db_name;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql>
On the contrary, when I ssh the mysql server and then try to login mysql prompt locally (without host) with the same user credentials and then try to change database it quickly changes and I don't get that message
mysql> USE db_name;
Database changed
mysql>
I tried to --disable-auto-rehash
in my.cnf but no luck. Please help
[mysql]
no-auto-rehash
$ mysql -A -h ip-of-remote -u username -p
?-A
every time. I need something at the server configuration levelno-auto-rehash
to the cnf file