码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-02-07 16:54:20      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:mysql

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的方式进入数据库。

       当我们打开数据库,即use   dbname时,要预读数据库信息,当使用-A参数时,就不预读数据库信息。


本文出自 “梦想照进现实” 博客,请务必保留此出处http://lookingdream.blog.51cto.com/5177800/1895615

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

标签:mysql

原文地址:http://lookingdream.blog.51cto.com/5177800/1895615

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!