Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 364
Jefferson Delos Santos Avatar asked Sep 03 '25 15:09

Jefferson Delos Santos


1 Answers

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/

like image 79
kgr Avatar answered Sep 05 '25 05:09

kgr