I try to create new database as your instructions. but it will not work in VS Code bash terminal. what should I do? #187324
Replies: 5 comments
-
|
It looks like you're already inside the PostgreSQL prompt ( From your screenshot, you ran: CREATE DATABASE first_database PostgreSQL commands must end with a semicolon. Correct command:
After creating the database, you can verify it exists:
To connect to the new database:
If it still doesn’t work, please share the exact error message shown in the terminal so we can help further. |
Beta Was this translation helpful? Give feedback.
-
|
In PostgreSQL, commands must end with a semicolon. Use |
Beta Was this translation helpful? Give feedback.
-
|
VS Code bash is just a terminal — it doesn’t create databases by itself. The command will only work if the database software is installed and running. First check: • What database are you using? (MySQL, PostgreSQL, MongoDB?) For example: MySQL → make sure mysqld is running, then use mysql -u root -p PostgreSQL → make sure postgres service is running, then use psql If you’re getting an error, share the exact message. That will make it easier to diagnose. |
Beta Was this translation helpful? Give feedback.
-
|
It looks like you are in the PostgreSQL interactive terminal (
After that, you can list databases with If you still face issues, verify:
If you see a specific error, please share it for more targeted help. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Beta Was this translation helpful? Give feedback.
All reactions