MySQL -A不预读数据库信息(use dbname 更快)
生活随笔
收集整理的這篇文章主要介紹了
MySQL -A不预读数据库信息(use dbname 更快)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
mysql數(shù)據(jù)庫預(yù)讀與不預(yù)讀數(shù)據(jù)庫信息(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 讓后就卡在這里。 ? 上面卡住的原因:: ?????是由于數(shù)據(jù)庫太大,即數(shù)據(jù)庫中表非常多,所以如果預(yù)讀數(shù)據(jù)庫信息,將非常慢,所以就卡住了,如果數(shù)據(jù)庫中表非常少,將不會出現(xiàn)問題。 ??????????? 出現(xiàn)問題的原因是:: ????我們進入mysql 時,沒有使用-A參數(shù); ????即我們使用 ????????mysql -hhostname -uusername -ppassword -Pport 的方式進入數(shù)據(jù), ????而沒有使用 ????????mysql -hhostname -uusername -ppassword -Pport ?-A的方式進入數(shù)據(jù)庫。 ????當我們打開數(shù)據(jù)庫,即use dbname時,要預(yù)讀數(shù)據(jù)庫信息,當使用-A參數(shù)時,就不預(yù)讀數(shù)據(jù)庫信息。
轉(zhuǎn)載于:https://www.cnblogs.com/fjping0606/p/4417682.html
總結(jié)
以上是生活随笔為你收集整理的MySQL -A不预读数据库信息(use dbname 更快)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: overall error
- 下一篇: 七招从办公室政治中取胜 发表于 09 M