Mysqlsh:mysql Shell Tutorial

Source: Internet
Author: User

The MySQL Shell is an advanced command-line client as well as a code editor for Mysql.

In addition to the Sql,mysql shell also provides scripting capabilities for JS and Python.

When MySQL shell was conected to the MySQL server throught the x protocol, the X DEVAPI can being used to work with both Relat ional and documnet data,

The Official tutorial 8.0 version of the 20th chapter is introduced.

MySQL contains Adminapi, allowing you to collaborate with InnoDB cluster. See chapter 21st.

Simple option Introduction.

Https://dev.mysql.com/doc/refman/8.0/en/mysqlsh.html

===================tutorial++++++++++++++++++++++++++

Features:

Gobal session:interactive with a MySQL server was done through a Session object.

For SQL mode, the concept of Global session was supported by the MySQL shell.

A Global session is created when the connection infromation are passed to MySQL shell using command options,

or by using the \connect Command.here is a example below:

\connect URI;

In this example, the input error should be written \connect [email protected]:3306/test cannot be appended with a semicolon.

1. MySQL Shell Connections

1.1 can connect to MySQL server using both the X protocol and the classic MySQL protocol.

The address fo the MySQL server which want to connect to can is specified using individual parameters, such as user, H Oustname and port, or using a Uniform Resource Identifier (URI) type string.

1.2. connectiing to the MySQL server.

1.2.1 mSQL Shell is not started: start with parameters

  • --dbuser(-u)value

  • --dbpassword(-p)value

  • --host(-h)value

  • --port(-P)value

  • --schema(-D)value

  • --no-password, or with an --password= empty value, if the user is connecting without a password

  • --socket(-S)

1.2.2 When MySQL Shell is running

Using the \connect command.

1.2.3

After that in:

Https://dev.mysql.com/doc/refman/8.0/en/mysql-shell-connection-options.html

Inquire.

Mysqlsh:mysql Shell Tutorial

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.