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參數時,就不預讀數據庫信息。
關鍵的因素是你的數據庫變大了。系統變慢了
