解決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不預讀數據庫信息(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> 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的方式進入數據庫。

 

 

解決方式二:

今天訪問數據庫的時候出現:

mysql> use test

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

 

先查看當前的進程情況,:

mysql> show processlist ;

 

如果進程中有鎖表的,比如id為4324343,則可以使用kill命令,結束它.


mysql> kill 4324343;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM