Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in MySQL Command Line, how do I paste from the clipboard using only the keyboard?

Hi I'm learning MySQL using MySQL Workbench Command Line Client v 5.6 in Windows 7.

I type my commands into a text editor, then from the text edtor I copy them onto the clipboard. To paste them into the Command Line Client (CLC) I must right click with the mouse and go to "paste" in the context menu.

I would like to forgo the mouse entirely. But in the CLC, none of the Windows keyboard shortcuts seem to work. CTRL+V for example produces "^v" while SHIFT+INSERT does nothing.

Is there a keyboard shortcut for "paste"?

like image 321
Russ Bain Avatar asked Jan 23 '26 22:01

Russ Bain


2 Answers

Although this question is clearly not a programming question this a way you can do this.

First you start by selecting the window with the command line. This can be done by alt + tab. Then when the command line windows is active you can paste the content of your clipboard with: alt + space Then go trough the menu with e and then p. The letters will dependent on the language from your windows OS.

like image 70
Mr. Radical Avatar answered Jan 25 '26 17:01

Mr. Radical


If you are using Win 10, you can turn on CTRL + C and CTRL + V shortcuts to work in the command prompt:

Windows 10 Copy/Paste in Cmd

like image 31
Rafet Avatar answered Jan 25 '26 15:01

Rafet