MySQL Client tool parameters in a detailed

Source: Internet
Author: User
Tags mysql client

Client Tools: Mysql,mysqladmin,mysqldump,mysqlcheck

Administrative tools for non-client classes: Myisamchk,myisampack


MySQL command prompt

mysql> Wait for input command

' No end provided ' in front of > '

">

' >

--Endurance character

/*> Comment Information


MySQL command-line edit shortcut keys

Ctrl+w: Delete A word before the cursor is located

Ctrl+u: Delete all content before the cursor to the beginning of the line

Ctrl+y: Paste the contents of ctrl+w or ctrl+u deleted before

CTRL + A: Move the cursor to the beginning

Ctrl+e: Move cursor to end of line

MySQL command-line options

-u,--user=

-H,--host=

-P,--password=

--protocol={tcp|socket|memory|pipe}

--port=

--socket=/tmp/mysql.sock

--compress Compression Transmission

--default-character-set Character Set

-V: Show version number

-V: Show more information

--SSL-CA CA Certificate

--ssl-capath The CA Certificate folder

--ssl-cert Client Certificate

--ssl-cipher Encrypted tears

Private key used by--ssl-key

--ssl-verify-server-cert Verifying server-side certificates

--database=-D: Specify the database to use

-H--html: Document with output as HTML format

-X--xml: Document with output as XML format

--safe-updates: Deny use of uodate or delete commands without a WHERE clause when sending commands



Mysqladmin Tools

mysqladmin [Options] command [ARG] [Command[arg]] .....


Here are the command options supported by the Commands section

Create db_name creating an empty database

-E: Return directly

Drop db_name Delete Database

Debug Open debug Log and log in with error log

Status: Output Summary status information

-sleep # Specifying display delay

-count # Specifying Batches

Extended-status: Each state variable and value of the output MYSQ is equivalent to executing "mysql> show global Status"

Flush-hosts: Empty host-related cache: DNS resolution cache, previously denied access to mysqld host list due to excessive number of connection errors

Flush-logs: Log scrolling, primarily binary logs and trunk logs

Refresh: Equivalent to simultaneous use of flush-logs and flush-hosts

Flush-privileges: Notifies the server to reread the authorization form

Reload: Overloaded Authorization table

Flush-status: Resetting the value of a state variable

Flush-tables: Closes the currently open table file handle

Flush-threads: Emptying the thread cache

Kill: Kills the specified thread and can kill multiple threads at once, separated by commas, but not with extra spaces

Password: Modify the password for the specified user

Processlist: List of threads

Shutdown: Close the mysqld process

Start-slave Boot from server process

Stop-slave shutdown from server process

Variables: Displays the MySQL server processes

MySQL Client tool parameters in a detailed

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.