今天使用mysql登录数据库,use一个表的时候出现警告信息,详细如下:

 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

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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

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

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

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

  -A参数解释:

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

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄