admin管理员组文章数量:1638924
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
https://img-blog.csdn/20160716004635662
mysql> use dbnameReading table information for completion of table and column namesYou 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参数时,就不预读数据库信息。
亲测使用之后,打开数据库的速度快了非常多。
本文标签: informationtablereadingnamesColumn
版权声明:本文标题:解决:Reading table information for completion of table and column names 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1729278728a1193811.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论