解决:Reading table information for completion of table and column names

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 -Amysql

 

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 
让后就卡在这里。sql

上面卡住的缘由:: 
是因为数据库太大,即数据库中表很是多,因此若是预读数据库信息,将很是慢,因此就卡住了,若是数据库中表很是少,将不会出现问题。数据库

出现问题的缘由是:: 
咱们进入mysql 时,没有使用-A参数; 
即咱们使用 
mysql -hhostname -uusername -ppassword -Pport 的方式进入数据, 
而没有使用 
mysql -hhostname -uusername -ppassword -Pport -A的方式进入数据库。ui

当咱们打开数据库,即use   dbname时,要预读数据库信息,当使用-A参数时,就不预读数据库信息。
相关文章
相关标签/搜索