原文:http://blog.163.com/xychenbaihu@yeah/blog/static/13222965520113152619796/
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的方式進入資料庫。
當我們打開資料庫,即use dbname時,要預讀資料庫資訊,當使用-a參數時,就不預讀資料庫資訊。