2.3.3.2 MySQL Installer Console
MySQLInstallerConsole은 GUI 버전의 MySQL Installer와 비슷한 기능을 제공하지만, 명령 행에서 실행합니다. 이것은 MySQL Installer를 처음 사용할 때 설치되며, MySQL Installer 디렉토리에서 사용할 수 있습니다. 보통 이것은 C:\Program Files (x86)\MySQL\MySQL Installer\ 에서 Console은 관리자 권한으로 실행해야합니다.
사용하려면 "시작", "액세서리"를 선택하고 "명령 프롬프트"를 오른쪽 클릭하고 "관리자로서 실행" 을 선택하여 관리자 권한으로 명령 프롬프트를 시작합니다. 그리고 옵션으로 명령 행에서 디렉토리를 MySQLInstallerConsole있는 위치로 변경합니다.
C:\>cd "C:\Program Files (x86)\MySQL\MySQL Installer for Windows"C:\>MySQLInstallerConsole.exe helpC:\Program Files (x86)\MySQL\MySQL Installer for Windows>MySQLInstallerConsole.exe help The following commands are available: Configure - Configures one or more of your installed programs. Help - Provides list of available commands. Install - Install and configure one or more available MySQL programs. List - Provides an interactive way to list all products available. Modify - Modifies the features of installed products. Remove - Removes one or more products from your system. Status - Shows the status of all installed products. Update - Update the current product catalog. Upgrade - Upgrades one or more of your installed programs.
MySQLInstallerConsole는 다음 옵션을 지원합니다. 이들은 명령 행에서 지정합니다.
configure[product1] : [setting] = [value]; [product2] : [setting] = [value]; [...]시스템에 하나 이상의 MySQL 제품을 구성합니다.
다음과 같은 스위치가 있습니다.
-showsettings: 제품 이름을-showsettings뒤에 전달하여 선택한 제품의 사용 가능한 옵션을 표시합니다.-silent: 확인 메시지를 해제합니다.
C:\>
MySQLInstallerConsoleC:\>configure -showsettings serverMySQLInstallerConsoleconfigure server:port=3307help [command]도움말 메시지를 예제와 함께 표시하고 종료합니다. 명령에 관련된 도움말을 수신하려면 그 명령을 전달합니다.
C:\>
MySQLInstallerConsoleC:\>helpMySQLInstallerConsolehelp installinstall[product] : [features] : config block] : config block] : config block]; [...]시스템에 하나 이상의 MySQL 제품을 설치합니다.
다음과 같은 스위치와 구문 옵션이 있습니다.
-type=[SetupType]: 미리 정의 된 소프트웨어 세트를 설치합니다. "SetupType"은 다음 중 하나입니다.참고Custom 이외의 설치 유형은 다른에 MySQL 제품이 설치되어 있지 않은 경우에만 선택할 수 있습니다.
Developer : 완전한 개발 환경을 설치합니다.
Server : 단일 MySQL Server를 설치합니다.
Client : 클라이언트 프로그램 및 라이브러리를 설치합니다.
Full : 모두 설치합니다.
Custom : 사용자가 선택한 제품을 설치합니다. 이것은 기본 옵션입니다.
-showsettings: 제품 이름을-showsettings뒤에 전달하여 선택한 제품의 사용 가능한 옵션을 표시합니다.-silent: 확인 메시지를 해제합니다.[config block]: 하나 이상의 구성 블록을 지정할 수 있습니다. 각 구성 블록은 세미콜론으로 구분 된 키 - 값 쌍의 목록입니다. 블록은 "config"또는 "user"유형 중 하나의 키를 포함 할 수 있으며, 지정되지 않은 경우 "config"가 기본 유형입니다."config"유형의 블록은 제품 당 하나만 정의 할 수 있습니다. "user"블록은 제품 설치 중에 작성된 각 사용자에 대해 정의합니다.
참고제품의 재구성중인 사용자의 추가는 지원되지 않습니다.
[feature]: 기능 블록은 세미콜론으로 구분 된 기능 목록 또는 "*"(모든 기능 선택)입니다.
C:\>
MySQLInstallerConsoleinstall server;5.6.25:*:port=3307;C:\>serverid=2:type=user;username=foo;password=bar;role=DBManagerMySQLInstallerConsoleinstall server;5.6.25;x64 -silentlist사용 가능한 모든 MySQL 제품을 검색 할 수있는 인터랙티브 콘솔을 나열합니다.
MySQLInstallerConsole list를 실행하고 콘솔을 시작하고 검색 문자열을 입력합니다.C:\>
MySQLInstallerConsolelistmodify[product1:-removelist|+addlist] [product2:-removelist|+addlist] [...]이전에 설치된 MySQL 제품의 기능을 변경하거나 표시합니다.
-silent: 확인 메시지를 해제합니다.
C:\>
MySQLInstallerConsoleC:\>modify serverMySQLInstallerConsoleC:\>modify server:+documentationMySQLInstallerConsolemodify server:-debugremove[product1] [product2] [...]시스템에서 하나 이상의 제품을 제거합니다.
*: 모든 MySQL 제품을 제거하려면*를 전달합니다.-continue: 오류가 발생하더라도 작업을 계속합니다.-silent: 확인 메시지를 해제합니다.
C:\>
MySQLInstallerConsoleC:\>remove *MySQLInstallerConsoleremove serverstatus시스템에 설치되어있는 MySQL 제품에 대한 간략한 개요를 제공합니다. 정보는 제품 이름과 버전, 아키텍처, 설치 날짜 및 설치 위치가 포함됩니다.
C:\>
MySQLInstallerConsolestatusupgrade [product1:version] [product2:version], [...]시스템에서 하나 이상의 제품을 업그레이드합니다. 다음과 같은 구문 옵션이 있습니다.
*: 모든 제품을 최신 버전으로 업그레이드하려면*를 전달합니다. 또는 구체적인 제품을 전달합니다.!: MySQL 제품을 최신 버전으로 업그레이드하려면 버전 번호로!를 전달합니다.-silent: 확인 메시지를 해제합니다.
C:\>
MySQLInstallerConsoleC:\>upgrade *MySQLInstallerConsoleC:\>upgrade workbench:6.3.5MySQLInstallerConsoleC:\>upgrade workbench:!MySQLInstallerConsoleupgrade workbench:6.3.5 excel:1.3.2update최신 MySQL 제품 카탈로그를 시스템에 다운로드합니다. 성공하면 다음 MySQLInstaller 또는 MySQLInstallerConsole이 실행 된 때 다운로드 카탈로그가 적용됩니다.
C : \>MySQLInstallerConsoleupdate참고"Automatic Catalog Update"GUI 옵션은이 명령을 Windows 작업 스케줄러에서 실행합니다.