Skip to content
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

result set is encoded through the MySQL client #9032

Closed
sakthi7 opened this issue Feb 6, 2020 · 8 comments
Closed

result set is encoded through the MySQL client #9032

sakthi7 opened this issue Feb 6, 2020 · 8 comments

Comments

@sakthi7
Copy link

sakthi7 commented Feb 6, 2020

Hi All,

I am trying to connect the Clickhouse with the MySQL client . But, the result set is coming something encoded .

Anything I missed ?

mysql -h127.0.0.1 -P9001 -udefault -pSakthi@321

mysql> show databases;
+------------------+
| name |
+------------------+
| 0x64656661756C74 |
| 0x6A65737573 |
| 0x73797374656D |
+------------------+
3 rows in set (0.00 sec)
Read 3 rows, 354.00 B in 0.000 sec., 6478 rows/sec., 746.55 KiB/sec.

@den-crane den-crane added the question Question? label Feb 7, 2020
@den-crane
Copy link
Contributor

CH version?

cc @yurriy

@sakthi7
Copy link
Author

sakthi7 commented Feb 8, 2020

Hi @den-crane ,

Thanks for the revert .

[root@ip-172-31-8-156 ~]# clickhouse-server --version
ClickHouse server version 19.17.4.11.
[root@ip-172-31-8-156 ~]# clickhouse-client --version
ClickHouse client version 19.17.4.11.

@sakthi7
Copy link
Author

sakthi7 commented Feb 8, 2020

Hi @den-crane ,

Thanks for the hint . I have tried with the MySQL 5.7 client . It is working fine for me .

Logs :

[root@ip-172-31-8-156 bin]# ./mysql --version
./mysql Ver 14.14 Distrib 5.7.28, for linux-glibc2.12 (x86_64) using EditLine wrapper
[root@ip-172-31-8-156 bin]#
[root@ip-172-31-8-156 bin]#
[root@ip-172-31-8-156 bin]# ./mysql -h127.0.0.1 -P9001 -udefault -pxxxxxxxxx
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 19.17.4.11-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> show databases;
+---------+
| name |
+---------+
| default |
| jesus |
| system |
+---------+
3 rows in set (0.00 sec)
Read 3 rows, 354.00 B in 0.000 sec., 6166 rows/sec., 710.56 KiB/sec.

Now, why it is not working with MySQL 8 ? It is because of the character set ? Because the default charset is UTF8MB4 on MySQL 8 .

Thanks !!!

@yurriy
Copy link
Contributor

yurriy commented Feb 11, 2020

Now, why it is not working with MySQL 8 ? It is because of the character set ? Because the default charset is UTF8MB4 on MySQL 8 .

I will look into that.

@sakthi7
Copy link
Author

sakthi7 commented Feb 17, 2020

Thank you !!!

@sakthi7 sakthi7 closed this as completed Feb 17, 2020
@den-crane den-crane reopened this Feb 17, 2020
@ClickHouse ClickHouse deleted a comment from blinkov May 18, 2020
@alexey-milovidov
Copy link
Member

@yurriy is not working on this issue right now, we have to reassign.

@yurriy
Copy link
Contributor

yurriy commented Jun 30, 2020

@yurriy is not working on this issue right now, we have to reassign.

It was fixed in #9079. Probably @den-crane reopened it because it wasn't in a stable version at that moment.

@alexey-milovidov
Copy link
Member

Ok, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants