zoukankan      html  css  js  c++  java
  • 解决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不预读数据库信息(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的方式进入数据库。

    解决方式二:

    今天访问数据库的时候出现:

    mysql> use test

    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A

    先查看当前的进程情况,:

    mysql> show processlist ;

    如果进程中有锁表的,比如id为4324343,则可以使用kill命令,结束它.


    mysql> kill 4324343;

  • 相关阅读:
    24种设计模式之适配器模式
    内存分配与回收策略
    java 吞吐量
    JVM运行数据区
    垃圾收集算法学习
    对象的回收
    未来一段时间学习方向
    多线程并发容器
    python基础数据类型--list列表
    Sublime Text 快捷键
  • 原文地址:https://www.cnblogs.com/weiluoyan/p/11017177.html
Copyright © 2011-2022 走看看