surrealdb / surrealdb.node

A Node.js engine for the SurrealDB JavaScript SDK
https://surrealdb.com
Apache License 2.0
59 stars 10 forks source link

SurrealDB works with Node.js but not shell. #1

Closed jub0t closed 2 years ago

jub0t commented 2 years ago

I started SurrealDB by the command below and ran a SQL command but it threw an error but when I use the Node.js SDK it worked perfectly fine.

Start command

surreal start --log debug --user root memory --pass root

image

SQL query

C:\> CREATE DATABASE tewrh;

{"code":400,"details":"Request problems detected","description":"There is a problem with your request. Refer to the documentation for further information.","information":"There was a problem with the database: Parse error on line 1 at character 16 when parsing 'tewrh;'"}

image

jub0t commented 2 years ago

Never mind, I did CREATE DATABASE instead of DEFINE DATABASE; image