MariaDB [(none)]> use laravel;
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 -uusername -ppassword -hhostname -Pport 的方式進入數據,
而沒有使用
mysql -uusername -ppassword -hhostname -Pport -A的方式進入數據庫。
當數據庫比較龐大的時候,我們打開數據庫,即use dbname時,要預讀數據庫信息,這樣系統會出現卡頓問題,當使用-A參數時,就不預讀數據庫信息。
MariaDB [(none)]> use laravel -A;
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