This question already has answers here:
How to restore PostgreSQL dump file into Postgres databases?
(8 answers)
How restore postgreSQL dump file using pgAdmin?
(1 answer)
How to backup & Restore PostgreSQL database in Windows7?
(3 answers)
How to restore table from dump to database?
(1 answer)
Is it possible to restore a Postgres database by simply swapping out some files for speed?
(2 answers)
Closed 4 years ago.
I have copied database folder from data/base and I wanted to copy them in another computer but in pgAdmin can't find the new database should I do something else besides copying the folder in data/base?
I'm using PostgreSQL 9.3
The problem is that when I try to save database from pgAdmin it freezes, I'm not sure if the database is corrupted or some tables.
Related
This question already has answers here:
PSQL [error] - value being recognized as a column
(1 answer)
Simple Postgresql Statement - column name does not exists
(2 answers)
postgres - where in (list) - column does not exist
(2 answers)
Closed 2 years ago.
I am using Heroku CLI to insert data in a database table. I have table name review and these are the columns of it :- (date,verified_reveiws,total_reviews). You can see it in provided image also. when I am executing insert command INSERT INTO review (date,verified_reveiws,total_reviews) VALUES (December, 5, 1169); i am getting this error ERROR: column "december" does not exist, LINE 1: ...iew (date,verified_reveiws,total_reviews) VALUES (December, .... I didn't able to get why this error is coming. psql version I am using is 12.5.
This question already has answers here:
In psql, why do some commands have no effect?
(2 answers)
Closed 2 years ago.
I downloaded postgresql installer version 11 from official website for windows.
when i enter psql and try to create database , database doesn't get created but it is creating by pgadmin4 with no problem
You are missing a semi-colon at the end of the line. You need to run:
CREATE DATABASE demo;
you miss semicolon on the end of command.
you should to write CREATE DATABASE demo;
psql by default allows multilines statements, so any statement should be finished by special character and it is semicolon ;
This question already has answers here:
How do I copy a database from one MongoDB server to another?
(5 answers)
Closed 4 years ago.
I want to copy my db called users binded by default to localhost:27017 to another bind address. How can I do this?
You could try using this copydb command.
Otherwise, you could use mongo export, export the data to a file. Then import those data into the new database. Back Up and Restore with MongoDB Tools
Here is the doc of mongo export
mongoexport
This question already has answers here:
In psql, why do some commands have no effect?
(2 answers)
Closed 6 years ago.
I have installed Postgres.app in Mac, and I have set the PATH variable to run the psql command.
Now I would like to create a new user and new database for a project that I'm creating. Nevertheless, when I execute a new command in terminal, it doesn't prompt me anything, and I don't know if my command was executed correctly.
Even if I write dummy words, it doesn't tell me anything:
Also, if I want to enter to the postgres user, it doesn't allow me, sending me the next error:
Does anyone know what is happening?.
Regards.
You have to append ; to each of your PostgreSQL - commands.
This question already has answers here:
How to switch databases in psql?
(15 answers)
Closed 8 years ago.
I am quite new to postgresql and I am looking to timprove. I mostly use MySQL and from what I see already there are a few differences. Under mysql i would want to use or change my database (d1), i simply say the command
use d1;
What do I do under postgres?
I can view the databases and roles using commands such as:
select * from pg_roles;
select datname from pg_database;
Also are there comprehensive online resouces that I can point to?
Thanks
Psql uses short commands prefixed by a backslash to identify 'meta-commmands'; inputs that are for the command shell and not commands to be sent to the database.
You can get a list of these by typing \?
You can change databases in psql by using \c databasename
Here's the psql documentation for the newest release