mysql .sh_mysqlsh : mysql shell tutorial

MySQL Shell 是一个高级的命令行客户端以及代码编辑器for Mysql.

除了SQL,MySQL Shell也提供脚本能力 for JS and Python.

When MySQL shell is conected to the MySQL server throught the X protocol, the X devAPI can be used to work with both relational and documnet data,

官方教程8.0版本第二十章有介绍.

MySQL包含AdminAPI,允许你同InnoDB cluster协作.见第21章.

简单的option介绍.

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

===================TUTORIAL++++++++++++++++++++++++++

Features:

Gobal Session: Interactive with a MySQL server is done through a Session object.

For SQL mode, the concept of Global session is supported by the mysql shell.

A global session is created when the connection infromation is passed to mysql shell using command options,

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

\connect uri;

20180526182727613901.png

此例中输入错误,应该写成 \connect root@localhost:3306/test后面不能加分号.

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 you want to connect to can be specified using individual parameters, such as user, houstname and port, or using a Uniform Resource Identifier(URI) type string.

1.2. connectiing to the mysql server.

1.2.1 msql shell没启动时:使用参数启动

--dbuser (-u) value

--host (-h) value

--port (-P) value

--schema (-D) value

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

1.2.2 when mysql shell is running

using the \connect command.

20180526182727798478.png

1.2.3

之后的在:

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

查询.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值