mysql - Is there distinction between the commands understood by the MySQL client and understood by the MySQL server?
问题描述
When using MySQL in command line (such as Bash),
is there a similar distinction between PostgreSQL server and client psql? If yes, what are the MySQL client and MySQL server when I run
mysql
in a OS shell? I never see in MySQL document a distinction between MySQL client/shell and MySQL server.is there distinction between the commands understood by the MySQL client and understood by the MySQL server? For comparison, in Postgresql, psql has its own commands usually started with
\
, such as\l
, while postgresql server only understands SQL commands and doesn't understand psql commands. In MySQL official document, I don't find it mentions whether a command is only understood by the MySQL client or by the MySQL server.
Thanks.
解决方案
The command line client mysql
also has commands that are interpreted by the client program rather than sent to the server.
Like for psql
, these commands start with a backslash.
You can find a list in the documentation.
推荐阅读
- python - 在 iNaturalist 数据集上训练的 faster_rcnn_resnet50_fgvc_2018_07_19 在 MacOS 上的推理速度极慢
- python - 使用变量的每行报价错误
- c# - 我想根据数据库中的颜色为特定单元格动态设置 DataGridCell 背景颜色或样式。我该怎么做呢?
- python - Pandas:根据在其他列上应用字符串条件创建列
- angularjs - 更改 AngularJS 文件中的会话远程用户并重定向到 ColdFusion 文件中的主页
- r - 从 for 循环中保存图像
- r - R中子样本的预测
- decimal - 验证空手道框架中的浮点值范围
- html - 无法使 fa-icon 与 img 垂直对齐
- sql - 如何在其他文件中使用 Knex 对象?