Приложение F Утилиты MySQL
Утилиты MySQL — это пакет утилит, используемых для обслуживания и администрирования серверов MySQL. Эти утилиты инкапсулируют набор базовых команд и объединяют их, так что их можно использовать для выполнения макроопераций одной командой. Их можно установить с MySQL Workbench или как отдельный пакет.
Они представляют собой набор командных утилит и библиотеку Python для упрощения выполнения распространенных задач. Библиотека написана полностью на Python, что означает, что не нужно устанавливать какие-либо другие инструменты или библиотеки для ее работы. В настоящее время она разработана для работы с Python версии 2.6 или выше, и нет поддержки Python версии 3.1.
Утилиты распространяются под лицензией GPLv2 и могут быть расширены с использованием предоставленной библиотеки.
Установка утилит MySQL
Разработка утилит MySQL ведется отдельно и требует отдельного скачивания. Попытка запустить утилиты MySQL при их отсутствии приведет к запросу скачивания и установки. Дополнительную информацию см. в руководстве по утилитам MySQL.
MySQL Workbench ищет утилиту MySQL mysqluc в системе PATH, чтобы определить, установлены ли утилиты MySQL.
Открытие утилит MySQL из MySQL Workbench
Чтобы открыть утилиту MySQL mysqluc (Объединенная консоль утилит MySQL) из MySQL Workbench, нажмите , а затем в меню. Следующий вывод показывает окно консоли утилит MySQL с выполненной командой help.
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).
© 2025 Oracle
Licensed under the GPLv2 License.
https://docs.oracle.com/cd/E17952_01/workbench-en/wb-mysql-utilities.html