Mysql中use一个表出现警告: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一个表的时候出现警告信息,详细如下:

后来上网查了一下,出现问题的原因是:

  进入mysql时,没有使用  -A  参数

  平时我们习惯使用:mysql -hhostname  -uusername -ppassword -Pport

  使用参数-A:mysql  -hhostname  -uusername  -ppassword  -Pport  -A  

  -A参数解释:

    当我们打开数据库,即use dbname时,要预读数据库信息,加上-A参数后,就不预读数据库信息。一般是我们的数据库变大的时候出现这样的问题。

posted @ 2018-10-10 17:33  峰哥ge  阅读(1017)  评论(0编辑  收藏  举报