The following content of this documentation page has been machine-translated. But unlike other websites, it is not done on the fly. This translated text lives on GitHub repository alongside main ClickHouse codebase and waits for fellow native speakers to make it more human-readable. You can also use the original English version as a reference.
ClickHouse支持MySQL线协议。 它可以通过启用 mysql_port 在配置文件中设置:
$ mysql --protocol tcp -u default -P 9004
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 126.96.36.199-ClickHouse Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>