zoukankan      html  css  js  c++  java
  • MySQL -A不预读数据库信息(use dbname 更快)

    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> 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参数时,就不预读数据库信息。
  • 相关阅读:
    ABAP中COLLECT的用法
    中文字符串提交乱码的解决方法
    我的Ubuntu系统
    SAP消息呈现
    ASP.NET博客站点全静态化的困扰
    JS利用函数修改全局变量
    让电脑速度增快几倍的法宝
    我的Ubuntu门派
    给老乡买本本的经历
    多事之秋
  • 原文地址:https://www.cnblogs.com/fjping0606/p/4417682.html
Copyright © 2011-2022 走看看