add new chinese translations
This commit is contained in:
33
pages.zh/common/mysqlsh.md
Normal file
33
pages.zh/common/mysqlsh.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# mysqlsh
|
||||
|
||||
> MySQL 的高级命令行客户端,支持 SQL、JavaScript 和 Python。
|
||||
> 它提供了管理 InnoDB 集群和文档存储集合的功能。
|
||||
> 更多信息:<https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-commands.html>。
|
||||
|
||||
- 以交互模式启动 MySQL Shell:
|
||||
|
||||
`mysqlsh`
|
||||
|
||||
- 连接到 MySQL 服务器:
|
||||
|
||||
`mysqlsh --user {{用户名}} --host {{主机名}} --port {{端口}}`
|
||||
|
||||
- 在服务器上执行 SQL 语句并退出:
|
||||
|
||||
`mysqlsh --user {{用户名}} --execute '{{sql语句}}'`
|
||||
|
||||
- 以 JavaScript 模式启动 MySQL Shell:
|
||||
|
||||
`mysqlsh --js`
|
||||
|
||||
- 以 Python 模式启动 MySQL Shell:
|
||||
|
||||
`mysqlsh --py`
|
||||
|
||||
- 将 JSON 文档导入 MySQL 集合:
|
||||
|
||||
`mysqlsh --import {{路径/到/文件.json}} --schema {{模式名称}} --collection {{集合名称}}`
|
||||
|
||||
- 启用详细输出:
|
||||
|
||||
`mysqlsh --verbose`
|
Reference in New Issue
Block a user