mysql -A 不预读数据库信息 (use dbname 更快)-Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
出现问题的原因是::
我们进入 mysql 时, 没有使用 - A 参数;
即我们使用
mysql -hhostname -uusername -ppassword -Pport 的方式进入数据,
而没有使用
mysql -hhostname -uusername -ppassword -Pport -A 的方式进入数据库.
当我们打开数据库, 即 use dbname 时, 要预读数据库信息, 当使用 - A 参数时, 就不预读数据库信息.
关键的因素是你的数据库变大了. 系统变慢了
来源: https://www.cnblogs.com/wajika/p/6773020.html