MySQL Reading table information for completion of table and column names

女爷i 2024-04-19 08:13 222阅读 0赞
  1. mysql> show databases;
  2. +--------------------+
  3. | Database |
  4. +--------------------+
  5. | test |
  6. | mysql |
  7. | statt |
  8. +--------------------+
  9. 3 rows in set (0.09 sec)
  10. mysql> use test;
  11. Reading table information for completion of table and column names
  12. You can turn off this feature to get a quicker startup with -A
  13. Database changed

加载表和列名称完成的表信息

你可以关闭此功能,以获得更快的启动使用option:-A

就是在登陆数据库是加一个-A的option,不预读数据库的信息就ok了。

  1. 出现问题的原因是::
  2. 我们进入mysql 时,没有使用-A参数;
  3. 即我们使用
  4. mysql -hhostname -uusername -ppassword -Pport 的方式进入数据,
  5. 而没有使用
  6. mysql -hhostname -uusername -ppassword -Pport -A的方式进入数据库。
  7. 当我们打开数据库,即use dbname时,要预读数据库信息,当使用-A参数时,就不预读数据库信息。

还有可能锁表

使用show processlist;命令查看有哪些进程阻塞;

2019091518110616.png

kill 380527;

这样就可以了。

发表评论

表情:
评论列表 (有 0 条评论,222人围观)

还没有评论,来说两句吧...

相关阅读