MySQL: SyntaxError: Unexpected identifier
You can type:
Mysql JS> \sql
Mysql SQL> \connect root@localhost
and provide your password.
By looking at this thread here, it looks like you might be using the shell in js mode, you might be able to toggle it off by using the switch
\sql
https://forums.mysql.com/read.php?10,661192,661203#msg-661203