[SOLVED] How do I switch to JS mode in mysql-shell when \js is an unknown command?

Issue

I installed mysql shell on my Ubuntu VM.

As per all internet sources, when I input

mysqlsh

The default mode should be JS mode. However, my default mode somehow is python, and if I switch it to javascript mode by using

/js

It doesn’t even recognize that command. Mysql mode works fine though. I’ve tried installing and reinstalling a couple of times to no avail.

What am I missing?

Here’s what popped up when i switch to js mode

Solution

It looks like your version of MySQL Shell was compiled without Javascipt mode support. You can download official version of MySQL Shell from https://dev.mysql.com/downloads/shell/

Answered By – kgr

Answer Checked By – Robin (BugsFixing Admin)

Leave a Reply

Your email address will not be published.