-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct MySQL Shell/Client section #8779
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
The removal of this note is intentional:
While MySQL Client (not Shell) stops to strip out optimizer hints, it continues to strip out TiDB specific comments like History note: |
Also note that MySQL Shell supports both the "Classic" MySQL protocol and "X Protocol". TiDB doesn't support X Protocol. Using |
Example sessions:
|
Hi, @dveeden. We realized that |
@Icemap Why isn't MySQL Client or MySQL Shell a good choice? Those are the "official" clients from Oracle MySQL that people that come to TiDB are likely to know already. The MariaDB Client is a fork of the MySQL Client and mostly behaves the same, the biggest difference is how the SSL/TLS options are set. Side note: I think mycli is a good client. Some time ago I fixed a few compatibility issues: dbcli/mycli#1014. I don't think there are more known compatibility issues, but I don't know for sure. I don't think it would be good if different parts of the documentation would recommend different commandline SQL clients. |
I don't believe I've ever used MySQL Shell (mysqlsh), and I don't think I've ever even heard of mycli. I usually use the MariaDB client (because it's usually built with readline). My gut reaction is I think it is not a good idea to recommend mycli, because it's not as widely used and not as easy to install. But I may be wrong about that. I certainly do agree that having some examples use the |
@c4pt0r Any opinion on this? |
@dveeden We had a discussion about that. We will use |
My opinion is that we should focus on the older |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Icemap what's the status of this? |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 3a7ca48
|
In response to a cherrypick label: new pull request created: #10946. |
In response to a cherrypick label: new pull request created: #10947. |
In response to a cherrypick label: new pull request created: #10948. |
What is changed, added or deleted? (Required)
There are two official commandline clients for MySQL, both opensource and released by the Oracle MySQL team.
MySQL Client (
mysql
), which is part of the MySQL Server code base, but can be installed separately viayum install mysql
on most YUM based linux distributions. With the offical YUM repo this becomesyum install mysql-community-client
. This client is written in C and has existed for as long as MySQL does.MySQL Shell (
mysqlsh
), which is a separate code base and can be installed separately. This is a newer tool and supports SQL, but also JS and Python. It has a more modern code base and is more extendable than the 'old' client.It looks like these two were mixed up into a single section of the docs.
Which TiDB version(s) do your changes apply to? (Required)
Do your changes match any of the following descriptions?