your programing

Windows 용 MySQL 명령 줄 클라이언트

lovepro 2020. 10. 12. 07:59
반응형

Windows 용 MySQL 명령 줄 클라이언트


Windows 용 멋진 명령 줄 MySQL 클라이언트가 있습니까? 샘플 쿼리를 연결하고 실행할 수있는 단일 exe를 의미합니다. 나는 봤는데 두꺼비 나 mysql 워크 벤치와 같은 큰 그래픽 환경 만 찾을 수 있었다. 간단한 명령 줄 도구 만 필요합니다. 어디서 다운로드 할 수 있습니까?

편집 : 내 PC에 전체 MySQL 패키지를 설치하고 싶지 않습니다. 나는 그것이 mysql 패키지 안에 있다는 것을 알고 있지만 어떻게이 cmd 라인 클라이언트 만 다운로드합니까? 나는 다른 것이 필요하지 않기 때문에.


MySQL 다운로드 페이지 로 이동하면 "Microsoft Windows"플랫폼을 선택합니다. 그런 다음 "Windows (x86, xx-bit), ZIP 아카이브"를 다운로드합니다 (140M 이상의 크기를 선택해야합니다.

바이너리는 "bin"폴더에 있습니다.

나는 이것이 단지 클라이언트 바이너리가 아니라 적어도 전체 서버를 설치하고 설정할 필요가 없다는 것을 이해합니다.


mysql.exe는 그렇게 할 수 있습니다 ....

연결,

mysql -u root -p (엔터 키를 치시오)

루트 암호 (u = 사용자 이름, p = 암호)를 입력하라는 메시지가 표시됩니다.

그런 다음 SQL 데이터베이스 명령을 사용하여 거의 모든 작업을 수행 할 수 있습니다 ....


서버 설치 중에 만 클라이언트 설치를 선택할 수 있습니다. 웹 사이트는 전체 설치 프로그램을 다운로드 할 수 있도록 만 제공합니다 ( http://www.mysql.com/downloads/mysql/ 에서 원하는 버전을 가져옴 ).

설치 마법사에서 설치 유형 (일반, 최소, 사용자 지정)을 묻는 메시지가 표시되면 '사용자 지정'을 선택합니다. 다음 화면에서 서버를 설치하지 않도록 선택하고 나머지 설치를 정상적으로 진행합니다.

완료되면 C : \ Program Files \ MySQL .. \ bin에 관련 클라이언트 프로그램 (mysql, mysqldump 등) 만 표시됩니다.


또한 다운로드 할 수 있습니다 MySQL의 워크 벤치 포함 (31Mo) mysql.exemysqldump.exe.

DBD:MySql먼 MySql db에 대해 SQL 문을 실행하기 위해 모듈을 사용하여 Perl 스크립트를 실행해야 할 때 성공적으로 테스트했습니다 .


꽤 간단합니다. D:\드라이브 에 mysql 커뮤니티 서버를 저장했습니다 . 따라서 이것이 내가 한 방법입니다.

이동 D:\mysql-5.7.18-winx64\bin하여 주소 표시 줄에 cmd를 입력하고 Enter 키를 누르면 명령 프롬프트가 열립니다. 이제 처음으로 사용하는 경우 mysql -u root -pEnter 키를 입력하십시오. 그런 다음 암호를 묻고 다시 Enter 키를 누릅니다. 그것이 당신이 mysql 서버에 연결되어 있다는 것입니다.

Before this make sure wamp or xampp any of the local server is running xampp를 실행하지 않고 mysql에 연결할 수 없기 때문입니다. 여기에 이미지 설명 입력

여기에 이미지 설명 입력

해피 코딩.


명령 줄에서 다음을 입력하여 mySQL에 액세스 할 수 있습니다.

C:\www\mysql\bin> mysql -u root -p

그런 다음 일반적으로 다음과 같은 SQL 명령을 입력 할 수 있습니다.

mysql> SHOW DATABASES;

여기에서는 mySQL 설치 디렉토리가 C:\www\mysql.


MySQL 클라이언트는 필요하지만 서버는 필요하지 않은 비슷한 요구 사항이 있으며 (가상 머신에서 실행되고 추가 오버 헤드를 원하지 않음) 가장 쉬운 방법은 일반적인 설치 옵션을 사용하지만 서버를 구성하지 않고 MySQL 커뮤니티 서버를 설치하는 것이 었습니다. 그래서 그것은 결코 시작되지 않고 실행되지 않습니다. 시스템 경로 환경 변수에 C : \ Program Files (x86) \ MySQL \ MySQL Server 5.5 \ bin을 추가했으며 MySQL 명령 줄 클라이언트 mssql.exe 및 mysqladmin.exe 프로그램을 사용할 수 있습니다.


If you are looking for tools like the the mysql and mysqldump command line client for Windows for versions around mysql Ver 14.14 Distrib 5.6.13, for Win32 (x86) it seems to be in HOMEDRIVE:\Program Files (x86)\MySQL\MySQL Workbench version

This directory is also not placed in the path by default so you will need to add it to your PATH environment variable before you can easily run it from the command prompt.

Also, there is a mysql utilities console but it does not work for my needs. Below is a list of the capabilities on the mysql utilities console in case it works for you:

Utility           Description
----------------  ---------------------------------------------------------
mysqlauditadmin   audit log maintenance utility
mysqlauditgrep    audit log search utility
mysqldbcompare    compare databases for consistency
mysqldbcopy       copy databases from one server to another
mysqldbexport     export metadata and data from databases
mysqldbimport     import metadata and data from files
mysqldiff         compare object definitions among objects where the
                  difference is how db1.obj1 differs from db2.obj2
mysqldiskusage    show disk usage for databases
mysqlfailover     automatic replication health monitoring and failover
mysqlfrm          show CREATE TABLE from .frm files
mysqlindexcheck   check for duplicate or redundant indexes
mysqlmetagrep     search metadata
mysqlprocgrep     search process information
mysqlreplicate    establish replication with a master
mysqlrpladmin     administration utility for MySQL replication
mysqlrplcheck     check replication
mysqlrplshow      show slaves attached to a master
mysqlserverclone  start another instance of a running server
mysqlserverinfo   show server information
mysqluserclone    clone a MySQL user account to one or more new users

mysql.exe is included in mysql package. You don't have to install anything additionally.


download the mysql-5.0.23-win32.zip (this is the smallest possible one) from archived versions in mysql.com website

cut and paste the installation in c drive as mysql folder

then install then follow instructions as per this page: https://cyleft.wordpress.com/2008/07/20/fixing-mysql-service-could-not-start-1067-errors/


Windows 사용자의 경우 : 1. MYSQL 정식 버전을 설치합니다. 2. Windows 10 시작 버튼에서 검색을 클릭하고 MySQL을 입력합니다. 3. MYSQL 명령 줄 클라이언트 5.5 (버전 5.5를 사용하고 있습니다)를 선택합니다. 4. 계속 진행하여 SQL 쿼리 / 5. 종료 유형 \ q 또는 종료

참고 URL : https://stackoverflow.com/questions/3246482/mysql-command-line-client-for-windows

반응형