How to exit "->" in macOS terminal for mysql?

1.6k Views Asked by At

I was testing commands like "status" for mysql, then I suddenly entered this mode I don't recognize. Can not do anything from here. Whatever I entered, it's just roll into next line.enter image description here

2

There are 2 best solutions below

0
On

use exit or quit and also \qto leave the mysql shell

see manual

To get to the next command you can use ; semicolon like you end all sql comands

0
On

You need to complete each command with a semicolon. So just type a semicolon and return and your command will be executed