解决MYSQL访问时无法切换数据库的问题.Reading table information for completion of table and column names
2014-04-03 12:00
1261 查看
今天访问数据库的时候出现:
mysql> use mydb
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
一般产生这个问题是由于MYSQL中数据库太大,导致读取预读时间太长,从而显示这个提示,如果之前都没有遇到这个问题,那么产生这个问题的原因可能是由于有改变数据库信息的操作,比如drop一个很大的表(几千万数据)而中途终止.
先查看当前的进程情况,:
mysql> show processlist ;
上图中锁表的id为16545618,则可以使用kill命令,结束它.
mysql> kill 16545618;
删除这些锁表的情况,我的mysql就能正常访问了.
mysql> use mydb
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
一般产生这个问题是由于MYSQL中数据库太大,导致读取预读时间太长,从而显示这个提示,如果之前都没有遇到这个问题,那么产生这个问题的原因可能是由于有改变数据库信息的操作,比如drop一个很大的表(几千万数据)而中途终止.
先查看当前的进程情况,:
mysql> show processlist ;
上图中锁表的id为16545618,则可以使用kill命令,结束它.
mysql> kill 16545618;
删除这些锁表的情况,我的mysql就能正常访问了.
相关文章推荐
- mysql不预读数据库信息(use dbname 更快,不会卡)—Reading table information for completion of table and column names
- 解决:Reading table information for completion of table and column names
- 解决:Reading table information for completion of table and column names
- 解决:Reading table information for completion of table and column names
- Reading table information for completion of table and column names
- Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -
- Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
- 使用Navicat for MySQL访问数据库老是提示ip不能连接mysql问题
- SQLServer 数据库变成单个用户后无法访问问题的解决方法
- mysql-proxy解决只能内网访问线上数据库问题
- 关于数据库连接时候出现用户无法访问的问题MetInfo Access denied for user 'ncdh'@'localhost' (using password: YES) ( 10
- 解决重启机器后,ArcGIS Server for Java的REST接口无法访问的问题
- mysql 主从同步 Error 'Out of range value for column的问题
- mysql无法连接到本地数据库的小问题及解决
- mysql 数据库界面无法访问的解决办法
- navicat for mysql无法连接数据库和连接数据库慢的问题
- 关于mysql 出现 1264 Out of range value for column 错误的解决办法
- weblogic部署war包action不能访问问题解决方法 [There is no Action mapped for namespace / and action name]
- Mysql中Table ‘XXX’ is marked as crashed and last (automatic?)问题解决方法
- 解决mysql创建数据库后出现:Access denied for user 'root'@'%' to database 'xxx'的问题