use database 切換提示You can turn off this feature to get a quicker startup
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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70000068/viewspace-2777491/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- FILESTREAM feature can't be enabled if you use cluster shared volumes
- How To Turn SNMP On/Off ? [ID 472530.1]
- why you can be in netherland
- [leetcode] 1642. Furthest Building You Can ReachLeetCodeUI
- In the meantime you can read the IGN analysis of Madden 22
- "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?APP
- For example, when you want to get the ball to the ground
- 2018-06-13 Use rpsblast to search Cdd databaseASTDatabase
- [LeetCode] 1953. Maximum Number of Weeks for Which You Can WorkLeetCode
- Composer 建立專案 You can also run `PHP --INI`PHP
- S2 - Lesson 57 - Can I help you, madam?
- You can‘t specify target table ‘Person‘ for update in FROM clause
- Get yourself a femdom Superior If you are truly submissive in ShanghaiAI
- 如何在MySQL資料庫中使用use來切換資料庫?MySql資料庫
- multiprocessing pool AttributeError: Can't get attribute 'func'Error
- fuse: mountpoint is not empty fuse: if you are sure this is safe, use the ‘nonempty‘ mount optionNone
- mysql中You can’t specify target table for update in FROM clMySql
- What You See Is What You Get 所見即所得 20240525~0526 心得記錄
- 完美解決stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.ErrorPython
- Node Express中app.use與app.getExpressAPP
- Incorrect MEMORY_MAX_TARGET (> Available RAM) Can Lead To Database HangsAIDatabase
- Try to run this command from the system terminal. Make sure that you use the correct version of ‘...
- git中提示 please tell me who you areGit
- HDU 4027 Can you answer these queries? (線段樹 區間開方)
- 程式切換(上下文切換)
- python 編輯器提示 do not use bare exceptPython
- 網站提示:You Don’t Have Permission To Access網站
- startup,startup mount,startup nomount之間的區別
- Input-Source-Pro:自動切換輸入法並提示狀態
- 棧切換
- UE5 In xxx use pin no longer exists on node Get,...打包問題。
- PHP 7.3 "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? 解決方法PHPUI
- mac提交svn提示CHECKOUT can only be performed on a version resourceMacORM
- Kettle: pentaho-server-ce-9.4 : ERROR [SchemaUpdate] could not get database metadataServerErrorDatabase
- 解決 Git 更新本地衝突:commit your changes or stash them before you can mergeGitMIT
- win10系統切換平板模式沒有提示怎麼解決Win10模式
- win10系統大小寫切換沒提示音如何開啟Win10
- [20190524]使用use_concat or_expand提示優化.txt優化