clickhouse 客户端工具

张映 发表于 2021-08-25

分类目录: clickhouse

标签:, ,

推荐三款工具都是跨平台的,mysql命令行,dbeaver,tabix。

1,mysql命令行

  1. <mysql_port>9004</mysql_port>  

在config.xml中添加mysql端口,重启clickhouse后,就可以登录了。

  1. [tidb@testticdc ~]$ mysql -u default -p -h 10.0.10.23 -P 9004  
  2. Enter password:  
  3. Welcome to the MariaDB monitor.  Commands end with ; or \g.  
  4. Your MySQL connection id is 1  
  5. Server version: 20.8.3.18-ClickHouse 0  
  6.   
  7. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.  
  8.   
  9. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.  
  10.   
  11. MySQL [(none)]> show databases;  
  12. +--------------------------------+  
  13. | name                           |  
  14. +--------------------------------+  
  15. | _temporary_and_external_tables |  
  16. default                        |  
  17. | netjoytest                     |  
  18. | netjoytest1                    |  
  19. | system                         |  
  20. +--------------------------------+  
  21. 5 rows in set (0.00 sec)  
  22.   
  23. MySQL [(none)]> use netjoytest1;  
  24. Reading table information for completion of table and column names  
  25. You can turn off this feature to get a quicker startup with -A  
  26.   
  27. Database changed  
  28. MySQL [netjoytest1]> show tables;  
  29. +-----------+  
  30. | name      |  
  31. +-----------+  
  32. | tank1     |  
  33. | tank1_all |  
  34. | tanktest  |  
  35. | tanktest2 |  
  36. | tanktest3 |  
  37. | tanktest4 |  
  38. +-----------+  
  39. 6 rows in set (0.00 sec)  
  40.   
  41. MySQL [netjoytest1]> select * from tank1_all limit 2;  
  42. +------+------+------+---------------------+  
  43. | id   | name | age  | create_time         |  
  44. +------+------+------+---------------------+  
  45. |    2 | tank |    0 | 2021-08-23 14:21:30 |  
  46. |    3 | tank |    0 | 2021-08-23 14:21:30 |  
  47. +------+------+------+---------------------+  
  48. 2 rows in set (0.01 sec)  

像navicate,hedisql,sequel pro等都可以连,不过图形界面点不了,只能sql查询。

2,dbeaver客户端工具,这个工具很强大,推荐使用

dbeaver

dbeaver

3,tabix有点类似于phpmyadmin

下载:git clone https://github.com/tabixio/tabix.git

配置nginx

  1. [root@localhost vhosts]# cat ck.conf  
  2.     server {  
  3.         listen 10090;  
  4.         server_name 10.0.50.20;  
  5.         charset        utf-8;  
  6.         root /root/tabix/build;  
  7.         location / {  
  8.             if (!-f $request_filename) {  
  9.                 rewrite ^(.*)$ /index.html last;  
  10.             }  
  11.             index  index.html index.htm;  
  12.         }  
  13.     }  
tabix

tabix



转载请注明
作者:海底苍鹰
地址:http://blog.51yip.com/clickhouse/2524.html