I'm using the MySQL shell for the first time. I ran the following commands:
\connect --mysql root@localhost:3306
\use myschema
But, when I try to follow this instruction:
myColl = db.createCollection('my_coll')
I get the error:
TypeError: Cannot read property 'createCollection' of null
The error obviously is due to the fact that db
object is null, but I don't know the syntax to instantiate it.