日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

use database 很慢/You can turn off this feature to get a quicker startup with –A

發布時間:2024/3/24 编程问答 45 豆豆
生活随笔 收集整理的這篇文章主要介紹了 use database 很慢/You can turn off this feature to get a quicker startup with –A 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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

Database changed

?

當切換到某個庫時,經常會出現上面信息,意思是預讀這個庫中表以及表列信息。

但是當庫中表很多,表中數據很大時,就會出現執行use <庫名>后半天沒反應,連接很慢的情況

?

解決辦法:

上面其實已經有提示了(You can turn off this feature to get a quicker startup with -A

就是在登陸連接mysql時使用-A參數,這樣就不會預讀庫中表信息了,能提高連接庫的速度.

?

shell>?mysql -h hostname -u username -P port -p -A

Enter password:

MySQL -A參數含義:

shell>?mysql --help

? -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.

?

例子:

shell>?mysql -h?127.0.0.1 -u?root -P 3306 -p

Enter password:

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

Database changed

mysql> exit
Bye

?

shell>?mysql -h?127.0.0.1 -u?root -P?3306 -p

Enter password:

mysql> use information_schema;
Database changed

?

?

總結

以上是生活随笔為你收集整理的use database 很慢/You can turn off this feature to get a quicker startup with –A的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。