Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jub0t opened this issue Sep 15, 2022 · 1 comment
Closed

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

jub0t opened this issue Sep 15, 2022 · 1 comment

Comments

@jub0t
Copy link

jub0t commented Sep 15, 2022

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
Copy link
Author

jub0t commented Sep 15, 2022

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

@jub0t jub0t closed this as completed Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant