I did a custom installation for MySQL and only included the MySQL shell, the server, and the Python connector in the installation.
But I don't know where the JavaScript prompt MySQL JS >
came from.
And because of that I can't connect Python and MySQL.
Just switch the execution mode to sql in the shell:
\sql