博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysqlsh : mysql shell tutorial
阅读量:5227 次
发布时间:2019-06-14

本文共 1534 字,大约阅读时间需要 5 分钟。

 

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;

 此例中输入错误,应该写成 \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没启动时:使用参数启动

  •  (-uvalue

  •  (-pvalue

  •  (-hvalue

  •  (-Pvalue

  •  (-Dvalue

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

  •  (-S)

1.2.2 when mysql shell is running

using the \connect command.

 1.2.3

 之后的在:

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

查询.

转载于:https://www.cnblogs.com/zienzir/p/9093826.html

你可能感兴趣的文章
二、create-react-app自定义配置
查看>>
Android PullToRefreshExpandableListView的点击事件
查看>>
系统的横向结构(AOP)
查看>>
linux常用命令
查看>>
NHibernate.3.0.Cookbook第四章第6节的翻译
查看>>
使用shared memory 计算矩阵乘法 (其实并没有加速多少)
查看>>
Django 相关
查看>>
git init
查看>>
训练记录
查看>>
IList和DataSet性能差别 转自 http://blog.csdn.net/ilovemsdn/article/details/2954335
查看>>
Hive教程(1)
查看>>
第16周总结
查看>>
C#编程时应注意的性能处理
查看>>
Fragment
查看>>
比较安全的获取站点更目录
查看>>
苹果开发者账号那些事儿(二)
查看>>
使用C#交互快速生成代码!
查看>>
UVA11374 Airport Express
查看>>
P1373 小a和uim之大逃离 四维dp,维护差值
查看>>
NOIP2015 运输计划 树上差分+树剖
查看>>