MySQL Workbench 發行說明
MySQL 公用程式是一個用於維護和管理 MySQL 伺服器的公用程式套件。這些公用程式封裝了一組原始命令,並將它們捆綁在一起,以便可以使用單一命令執行巨集操作。它們可以與 MySQL Workbench 一起安裝,也可以作為獨立套件安裝。
它們是一組命令列公用程式和 Python 程式庫,旨在讓常見任務易於完成。該程式庫完全以 Python 編寫,這表示無需安裝任何其他工具或程式庫即可使其運作。目前,它設計為與 Python v2.6 或更高版本搭配使用,且不支援 Python v3.1。
這些公用程式在 GPLv2 授權下提供,並且可以使用提供的程式庫進行擴充。
安裝 MySQL 公用程式
MySQL 公用程式的開發在其他地方進行管理,需要單獨下載。嘗試在未安裝 MySQL 公用程式時啟動它們,會提示下載並安裝它們。如需其他資訊,請參閱 MySQL 公用程式手冊。
注意
MySQL Workbench 會在系統 PATH
中搜尋 mysqluc MySQL 公用程式,以判斷是否已安裝 MySQL 公用程式。
從 MySQL Workbench 開啟 MySQL 公用程式
若要從 MySQL Workbench 開啟 MySQL 公用程式 mysqluc(MySQL 公用程式整合主控台),請從選單中按一下 ,然後按一下 。下列輸出顯示執行 help
命令的 MySQL 公用程式主控台視窗。
Welcome to the MySQL Utilities Client (mysqluc) version 1.6.5
Copyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.
This is a release of dual licensed MySQL Utilities. For the avoidance of
doubt, this particular copy of the software is released
under a commercial license and the GNU General Public License does not apply.
MySQL Utilities is brought to you by Oracle.
Type 'help' for a list of commands or press TAB twice for list of utilities.
mysqluc> help
Command Description
---------------------- ---------------------------------------------------
help utilities Display list of all utilities supported.
help <utility> Display help for a specific utility.
show errors Display errors captured during the execution of the
utilities.
clear errors clear captured errors.
show last error Display the last error captured during the
execution of the utilities
help | help commands Show this list.
exit | quit Exit the console.
set <variable>=<value> Store a variable for recall in commands.
show options Display list of options specified by the user on
launch.
show variables Display list of variables.
<ENTER> Press ENTER to execute command.
<ESCAPE> Press ESCAPE to clear the command entry.
<DOWN> Press DOWN to retrieve the previous command.
<UP> Press UP to retrieve the next command in history.
<TAB> Press TAB for type completion of utility, option,
or variable names.
<TAB><TAB> Press TAB twice for list of matching type
completion (context sensitive).