데이터 베이스 MySQL 튜토리얼 mysqlslap压力测试工具_MySQL

mysqlslap压力测试工具_MySQL

Jun 01, 2016 pm 01:33 PM
mysql 스트레스 테스트

bitsCN.com

mysqlslap压力测试工具

 

mysqlslap 是从mysql 5.1.4版开始带的一个mysql测试工具。

[root@aeolus1 ~]# mysqlslap --help

 

mysqlslap  Ver 1.0 Distrib 5.5.31, for Linux (x86_64)

Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.

 

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

 

Run a query multiple times against the server.

 

Usage: mysqlslap [OPTIONS]

 

Default options are read from the following files in the given order:

/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf 

The following groups are read: mysqlslap client

The following options may be given as the first argument:

--print-defaults        Print the program argument list and exit.

--no-defaults           Don't read default options from any option file.

--defaults-file=#       Only read default options from the given file #.

--defaults-extra-file=# Read this file after the global files are read.

  -?, --help          Display this help and exit.

  -a, --auto-generate-sql 

                      Generate SQL where not supplied by file or command line.

  --auto-generate-sql-add-autoincrement 

                      Add an AUTO_INCREMENT column to auto-generated tables.

  --auto-generate-sql-execute-number=# 

                      Set this number to generate a set number of queries to

                      run.

  --auto-generate-sql-guid-primary 

                      Add GUID based primary keys to auto-generated tables.

  --auto-generate-sql-load-type=name 

                      Specify test load type: mixed, update, write, key, or

                      read; default is mixed.

  --auto-generate-sql-secondary-indexes=# 

                      Number of secondary indexes to add to auto-generated

                      tables.

  --auto-generate-sql-unique-query-number=# 

                      Number of unique queries to generate for automatic tests.

  --auto-generate-sql-unique-write-number=# 

                      Number of unique queries to generate for

                      auto-generate-sql-write-number.

  --auto-generate-sql-write-number=# 

                      Number of row inserts to perform for each thread (default

                      is 100).

  --commit=#          Commit records every X number of statements.

  -C, --compress      Use compression in server/client protocol.

  -c, --concurrency=name 

                      Number of clients to simulate for query to run.

  --create=name       File or string to use create tables.

  --create-schema=name 

                      Schema to run tests in.

  --csv[=name]        Generate CSV output to named file or to stdout if no file

                      is named.

  -#, --debug[=#]     This is a non-debug version. Catch this and exit.

  --debug-check       Check memory and open file usage at exit.

  -T, --debug-info    Print some debug info at exit.

  --default-auth=name Default authentication client-side plugin to use.

  -F, --delimiter=name 

                      Delimiter to use in SQL statements supplied in file or

                      command line.

  --detach=#          Detach (close and reopen) connections after X number of

                      requests.

  --enable-cleartext-plugin 

                      Enable/disable the clear text authentication plugin.

  -e, --engine=name   Storage engine to use for creating the table.

  -h, --host=name     Connect to host.

  -i, --iterations=#  Number of times to run the tests.

  --no-drop           Do not drop the schema after the test.

  -x, --number-char-cols=name 

                      Number of VARCHAR columns to create in table if

                      specifying --auto-generate-sql.

  -y, --number-int-cols=name 

                      Number of INT columns to create in table if specifying

                      --auto-generate-sql.

  --number-of-queries=# 

                      Limit each client to this number of queries (this is not

                      exact).

  --only-print        Do not connect to the databases, but instead print out

                      what would have been done.

  -p, --password[=name] 

                      Password to use when connecting to server. If password is

                      not given it's asked from the tty.

  --plugin-dir=name   Directory for client-side plugins.

  -P, --port=#        Port number to use for connection.

  --post-query=name   Query to run or file containing query to execute after

                      tests have completed.

  --post-system=name  system() string to execute after tests have completed.

  --pre-query=name    Query to run or file containing query to execute before

                      running tests.

  --pre-system=name   system() string to execute before running tests.

  --protocol=name     The protocol to use for connection (tcp, socket, pipe,

                      memory).

  -q, --query=name    Query to run or file containing query to run.

  -s, --silent        Run program in silent mode - no output.

  -S, --socket=name   The socket file to use for connection.

  -u, --user=name     User for login if not current user.

  -v, --verbose       More verbose output; you can use this multiple times to

                      get even more verbose output.

  -V, --version       Output version information and exit.
 

bitsCN.com
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

Video Face Swap

Video Face Swap

완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

뜨거운 도구

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

MySQL의 역할 : 웹 응용 프로그램의 데이터베이스 MySQL의 역할 : 웹 응용 프로그램의 데이터베이스 Apr 17, 2025 am 12:23 AM

웹 응용 프로그램에서 MySQL의 주요 역할은 데이터를 저장하고 관리하는 것입니다. 1. MySQL은 사용자 정보, 제품 카탈로그, 트랜잭션 레코드 및 기타 데이터를 효율적으로 처리합니다. 2. SQL 쿼리를 통해 개발자는 데이터베이스에서 정보를 추출하여 동적 컨텐츠를 생성 할 수 있습니다. 3.mysql은 클라이언트-서버 모델을 기반으로 작동하여 허용 가능한 쿼리 속도를 보장합니다.

LARAVEL 소개 예 LARAVEL 소개 예 Apr 18, 2025 pm 12:45 PM

Laravel은 웹 응용 프로그램을 쉽게 구축하기위한 PHP 프레임 워크입니다. 설치 : Composer를 사용하여 전 세계적으로 Laravel CLI를 설치하고 프로젝트 디렉토리에서 응용 프로그램을 작성하는 등 다양한 기능을 제공합니다. 라우팅 : Routes/Web.php에서 URL과 핸들러 간의 관계를 정의하십시오. 보기 : 리소스/뷰에서보기를 작성하여 응용 프로그램의 인터페이스를 렌더링합니다. 데이터베이스 통합 : MySQL과 같은 데이터베이스와 상자 외 통합을 제공하고 마이그레이션을 사용하여 테이블을 작성하고 수정합니다. 모델 및 컨트롤러 : 모델은 데이터베이스 엔티티를 나타내고 컨트롤러는 HTTP 요청을 처리합니다.

MySQL 및 Phpmyadmin : 핵심 기능 및 기능 MySQL 및 Phpmyadmin : 핵심 기능 및 기능 Apr 22, 2025 am 12:12 AM

MySQL 및 Phpmyadmin은 강력한 데이터베이스 관리 도구입니다. 1) MySQL은 데이터베이스 및 테이블을 작성하고 DML 및 SQL 쿼리를 실행하는 데 사용됩니다. 2) PHPMYADMIN은 데이터베이스 관리, 테이블 구조 관리, 데이터 운영 및 사용자 권한 관리에 직관적 인 인터페이스를 제공합니다.

MySQL 대 기타 프로그래밍 언어 : 비교 MySQL 대 기타 프로그래밍 언어 : 비교 Apr 19, 2025 am 12:22 AM

다른 프로그래밍 언어와 비교할 때 MySQL은 주로 데이터를 저장하고 관리하는 데 사용되는 반면 Python, Java 및 C와 같은 다른 언어는 논리적 처리 및 응용 프로그램 개발에 사용됩니다. MySQL은 데이터 관리 요구에 적합한 고성능, 확장 성 및 크로스 플랫폼 지원으로 유명하며 다른 언어는 데이터 분석, 엔터프라이즈 애플리케이션 및 시스템 프로그래밍과 같은 해당 분야에서 이점이 있습니다.

데이터베이스 연결 문제 해결 : Minii/DB 라이브러리 사용 실질적인 사례 데이터베이스 연결 문제 해결 : Minii/DB 라이브러리 사용 실질적인 사례 Apr 18, 2025 am 07:09 AM

작은 응용 프로그램을 개발할 때 까다로운 문제가 발생했습니다. 가벼운 데이터베이스 운영 라이브러리를 신속하게 통합해야합니다. 여러 라이브러리를 시도한 후에는 기능이 너무 많거나 호환되지 않는다는 것을 알았습니다. 결국, 나는 내 문제를 완벽하게 해결하는 YII2를 기반으로 단순화 된 버전 인 Minii/DB를 발견했습니다.

Laravel 프레임 워크 설치 방법 Laravel 프레임 워크 설치 방법 Apr 18, 2025 pm 12:54 PM

기사 요약 :이 기사는 Laravel 프레임 워크를 쉽게 설치하는 방법에 대한 독자들을 안내하기위한 자세한 단계별 지침을 제공합니다. Laravel은 웹 애플리케이션의 개발 프로세스를 가속화하는 강력한 PHP 프레임 워크입니다. 이 자습서는 시스템 요구 사항에서 데이터베이스 구성 및 라우팅 설정에 이르기까지 설치 프로세스를 다룹니다. 이러한 단계를 수행함으로써 독자들은 라벨 프로젝트를위한 탄탄한 토대를 빠르고 효율적으로 놓을 수 있습니다.

초보자를위한 MySQL : 데이터베이스 관리를 시작합니다 초보자를위한 MySQL : 데이터베이스 관리를 시작합니다 Apr 18, 2025 am 12:10 AM

MySQL의 기본 작업에는 데이터베이스, 테이블 작성 및 SQL을 사용하여 데이터에서 CRUD 작업을 수행하는 것이 포함됩니다. 1. 데이터베이스 생성 : createAbasemy_first_db; 2. 테이블 만들기 : CreateTableBooks (idintauto_incrementprimarykey, titlevarchar (100) notnull, authorvarchar (100) notnull, published_yearint); 3. 데이터 삽입 : InsertIntobooks (Title, Author, Published_year) VA

MySQL 모드 해결 문제 : theliamysqlmodeschecker 모듈 사용 경험 MySQL 모드 해결 문제 : theliamysqlmodeschecker 모듈 사용 경험 Apr 18, 2025 am 08:42 AM

Thelia를 사용하여 전자 상거래 웹 사이트를 개발할 때 까다로운 문제가 발생했습니다. MySQL 모드가 제대로 설정되지 않아 일부 기능이 제대로 작동하지 않습니다. 약간의 탐색 후, 나는 theliamysqlmodeschecker라는 모듈을 발견했습니다.이 모듈은 Thelia가 요구하는 MySQL 패턴을 자동으로 수정하여 내 문제를 완전히 해결할 수 있습니다.

See all articles