mycli icon indicating copy to clipboard operation
mycli copied to clipboard

mycli 系统找不到指定的文件。

Open yuxingchang opened this issue 6 years ago • 6 comments

mycli in windows:

mysql root@localhost:(none)> use mysql You are now connected to database "mysql" as user "root" Time: 0.001s mysql root@localhost:mysql> show tables; 系统找不到指定的文件。 33 rows in set Time: 0.012s mysql root@localhost:mysql>

yuxingchang avatar Apr 05 '20 14:04 yuxingchang

have same problem

luojianet avatar Apr 10 '20 02:04 luojianet

@yuxingchang Can you paste the contents of your log file?

You can find them under C:\Users\<username>\.my.cnf in windows.

amjith avatar Apr 17 '20 20:04 amjith

I have the same problem, and unfortunately i haven't found the solution to solve it. Otherwise, the pgcli has the same problem on windows platform. I think it's a bug, waiting for someone fix it.

steven-ysj avatar May 01 '20 02:05 steven-ysj

I have the same problem too. I ckeck the log file (in windows is C:\Users\<username>\.mycli.log), but it didn't record anything related. The error dosen't have a traceback. By the way, "系统找不到指定的文件" is "The system cannot find the file specified".

image

I found that if I comment the line 837 in main.py, the problem disappear. https://github.com/dbcli/mycli/blob/7a059a6f9eea76af30966609bce8361de2c501ca/mycli/main.py#L837

Then I found this issue about click echo_via_pager broken on Windows in 7.1. According to its solution, I upgrade the click from 7.1.1 to 7.1.2, and it works.

image image @amjith @luojianet @yuxingchang @steven-ysj

whm2015 avatar May 28 '20 15:05 whm2015

#854 may duplicate of this.

whm2015 avatar May 28 '20 15:05 whm2015

@whm2015 Well Done.I just try it,and both mycli and pgcli perform properly.Thank you.

steven-ysj avatar May 31 '20 10:05 steven-ysj