MySQL use database 长时间无响应

原因:库中表数据过大,加载、扫描慢导致;

解决方法:在进行数据库连接时不进行表扫描,使用参数 -A

-A, --no-auto-rehash 
                      No automatic rehashing. One has to use 'rehash' to get
                      table and field completion. This gives a quicker start of
                      mysql and disables rehashing on reconnect.

如:mysql -u root -p -A

猜你喜欢

转载自blog.csdn.net/c1052981766/article/details/80226155
今日推荐