Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:52
    codecov-io commented #805
  • 13:52
    codecov-io commented #805
  • 13:52
    codecov-io commented #805
  • 13:52
    codecov-io commented #805
  • 13:51
    codecov-io commented #805
  • 13:37
    pasenor synchronize #805
  • 13:37

    pasenor on editor-auto-execute

    dont auto-execute query after a… (compare)

  • 13:12
    pasenor edited #805
  • 13:03
    NeverI commented #762
  • 12:42
    pasenor commented #762
  • 12:39
    codecov-io commented #805
  • 12:39
    codecov-io commented #805
  • 12:39
    codecov-io commented #805
  • 12:39
    codecov-io commented #805
  • 12:39
    codecov-io commented #805
  • 12:39
    codecov-io commented #805
  • 12:39
    codecov-io commented #805
  • 12:35
    pasenor edited #805
  • 12:32
    pasenor synchronize #805
  • 12:32

    pasenor on editor-auto-execute

    dont auto-execute query after a… (compare)

Brian Miller
@bkmdev
hi, is there a bug with the way mycli (v1.16.0) connects? I notice the error messages keep pre-pending u' to everything when it fails to connect? Also -p seems to behave the opposite of what is expected when it is blank...
Alex Popov
@AlexVPopov
Hello. If the result of a query is wider than my screen, but I want to keep in table format and not use --auto-vertical-output, is there a way to prevent a line wrap?
Eatgrass
@eatgrass
hi, i have follow section in my .myclirc, how can i connect to this test server, tried mycli test, mycelia -d mycli test, prompt error no such option -d
[test]
 user = root
 password = 1234
 host = 127.0.0.1
 database = test
 port =  3306
songgl
@javasgl
why the query result can not highlight? just the sql can highlight?
songgl
@javasgl
@tsroten
hextechrevolver
@hextechrevolver
Hi, I have the following command, "use test_database;", is there a way to alias this in mycli?
Samer Atiani
@satiani
Hello all, I'm facing problems with writing to CSV files in mycli (version 1.17.0), it seems like I can write only once per session to a file, and the only way to write to two files is to exit the session and rerun the commands:
~ % mycli
Version: 1.17.0
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Magnus udd
mariadb web@localhost:db> \T csv
Changed table format to csv
Time: 0.000s
mariadb web@localhost:db> \o ~/test.csv
Time: 0.000s
mariadb web@localhost:db> select count(*) from test_table;
"count(*)"
"42894"
1 row in set
Time: 0.006s
mariadb web@localhost:db> \o ~/test1.csv
Time: 0.000s
mariadb web@localhost:db> select count(*) from test_table;
"count(*)"
"42894"
1 row in set
Time: 0.001s
mariadb web@localhost:db>
In the example above ~/test.csv is written to, but ~/test1.csv isn't
Is this a known issue?
audo23
@audo23
hello all, i got 2 questions about mycli usage in windows 7:
1, how can PowerCmd work with mycli? i trid and it's a mess.
2, has anyone come accross that whe type 'V' in the keyboard and then it acts just like the key ENTER ?
thanks for sharing solutions.
Eatgrass
@eatgrass
how to update to 1.17 using homebrew
vishaltwc
@vishaltwc
Hey all, need some help to reverse sort records based on an ID column that is alphanumeric. The IDs are like ABCD0, ABCD2, ABCD3, ABCD10, ABCD1, ABCD11, ABCD9. The expected response is ABCD11, ABCD10, ABCD9, ABCD3, ABCD2, ABCD1, ABCD0. So basically need to sort the records based upon the numeric part of the ID in descending order. The regular sort and order by is sorting it something like - ABCD9, ABCD3, ABCD2, ABCD11, ABCD10, ABCD1, ABCD0 which I do not want.
Oukanina
@Oukanina
Hey all, how to use dsn ??
I got a TypeError: argument of type 'NoneType' is not iterable
Daniel Guldberg Aaes
@notaduck

Hi guys. Iøve two quick questions.

1) Is there anyw ay to change this ugly green color of the rows? https://i.imgur.com/Jcg4PNx.png
2) is there an easy way to export a query to a file?

Btw. is there any way to let mycli generate a UML diagram (ASCII will be fine) just like DBeaver and Mysql WOkbench can.
Amjith Ramanujam
@amjith
1) Yes. You can change the color of the header in your config file. https://github.com/dbcli/mycli/blob/master/mycli/myclirc#L110
2) To redirect the results of a command to a file use the special command \once
Type in help in mycli and you'll see a short description of how to use it.
@notaduck ^
Jim Fisk
@jimafisk
@Santiagosp98 I have a very similar problem to the permission denied error you posted: https://gitter.im/dbcli/mycli?at=58f98803f22385553d5ff89a. Do you remember what the "misconfiguration on mysql" was?

I'm trying to install MyCLI in a lando environment, but when I try to open a prompt in the container using "tooling" I get:

Traceback (most recent call last):
  File "/usr/local/bin/mycli", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/mycli/main.py", line 1047, in cli
    myclirc=myclirc)
  File "/usr/local/lib/python2.7/dist-packages/mycli/main.py", line 142, in __init__
    write_default_config(self.default_config_file, myclirc)
  File "/usr/local/lib/python2.7/dist-packages/mycli/config.py", line 72, in write_default_config
    shutil.copyfile(source, destination)
  File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: u'/.myclirc'

It was working with an older version of lando...

Jim Fisk
@jimafisk
Just to follow up, I resolved this issue by explicitly referencing the user in the lando config, here are the details: lando/lando#1515
Georgi Tapalilov
@tapalilov
how can i disable suggestion from previous query?
vinhha96
@vinhha96
hi everybody

I'm meeting a problem with show message UNICODE on console with mycli (with image attachment). Please help me how to config mycli to show message unicode beautiful.

I was researched all source but can't config. Please help me.

Aravinda Rao
@ManiacalAce
I'm setting up everything on a new laptop. I see that my select-output in mycli for big-valued columns (like json) are now being truncated :(
Is this a settings thing or something else I'm overlooking?
王鹏宇
@189174944
Hello
Bill
@billscofield
doesn‘t support delimiter? when i am creating a procedure ,i need delimiter //; but error
Kim Ford
@kimfucious
Hi all, just checking out mycli and can't figure out how to run a command after editing it with \e. With mysql you type a ; after exiting vim, but for the life of my I can't find the way to do this. Got milk?
shilinlee
@shilinlee

I found the time that the sql statment excute using mycli is much longer than that using original mysql command line. But why???

mycli:

dev> select item_id from zoro_article_model_copy where marker_id = 6133 and app_id="06141_190614_4653" and `index` = 1;                                                                                                                                                                                         
12960 rows in set
Time: 0.342s
dev> select id from zoro_article_model_copy where marker_id = 6133 and app_id="06141_190614_4653" and `index` = 1;                                                                                                                                                                                              
12960 rows in set
Time: 0.331s

mysql:

mysql> select id from zoro_article_model_copy where marker_id = 6133 and app_id="06141_190614_4653" and `index` = 1;
+---------+
| id          |
+---------+
| 1114576 |
| 1114578 |
| 1114580 |
:
12960 rows in set (0.06 sec)

Please! I want some help.

shilinlee
@shilinlee

The timing config:

# Timing of sql statments and table rendering.
timing = True

What could I do if I just want the timing of sql statments excuted ???

Rob Steuber
@rsteuber_gitlab
Anybody still out there?
Nicolas Embriz
@nbari
Hi, how to prevent mycli to trim output of data, I see some columns ending with "..."
Nicolas Embriz
@nbari
if I use \G it shows full data
but not by just a normal query
Nicolas Embriz
@nbari
I tried already cat a a pager but sill
Sky
@yihuan
Hey all, I had a problem using mycli in Ubuntu, that it returned 255 when I ran it.
Any idea what's going on here?
Waqar Ali
@WaqarAli_DBA_twitter
Hi everyone
Any buddy here
Amjith Ramanujam
@amjith
Feel free to ask the question, a fellow user might come by and answer it later. This is not an actively monitored channel.
@nbari This issue has been fixed in the newer version of cli_helpers which is a dependency of mycli. Please upgrade using pip install -U cli_helpers.
@kimfucious I hope you figured out how to run the command after editing it. You just press enter and that command will be executed by mysql.
mrchar
@mrchar
mariadb 10.4.8-MariaDB-1:10.4.8+maria~bionic
mycli 1.20.1
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Johannes Hoff
Exception in thread completion_refresh:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
mariadb root@172.17.0.3:(none)> self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(self._args, *self._kwargs)
File "/usr/lib/python3.8/site-packages/mycli/completion_refresher.py", line 77, in _bg_refresh
callback(completer)
File "/usr/lib/python3.8/site-packages/mycli/main.py", line 865, in _on_completions_refreshed
self.prompt_app.app.invalidate()
File "/usr/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 468, in invalidate
schedule_redraw() Right-arrow to complete suggestion Refreshing completions...
File "/usr/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 450, in schedule_redraw
call_soon_threadsafe(
File "/usr/lib/python3.8/site-packages/prompt_toolkit/eventloop/utils.py", line 57, in call_soon_threadsafe
loop2 = loop or get_event_loop()
File "/usr/lib/python3.8/asyncio/events.py", line 639, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'completion_refresh'.
there is a error when I use mycli visit my db, but I can operate my db with no error.
Daniel Guldberg Aaes
@notaduck
Good morning everybody!
do any of you know if it is possible to use vim over vi as an external editor?