Empty file is returned when i am trying to export the PostgreSQL from phppgadmin
up vote
0
down vote
favorite
I am trying to deploy my application in Alibaba Cloud ECS instance. For that, I am trying to export my database structure and data from the phppgadmin pannel in my dev environment. I tried a couple of times it always gives me an empty file (0 bytes). So I decided to use Postgres dump to export the database but it gives me only DB structure. What I am missing? This is my first application with respect to PostgreSQL.
The Command I used to get the PostgreSQL dump is
pg_dump -U username dbname > dbexport.sql
Note: The above is the syntax i used to export the PostgreSQL after getting empty file via the control pannel.
sql postgresql alibaba-cloud alibaba-cloud-ecs
add a comment |
up vote
0
down vote
favorite
I am trying to deploy my application in Alibaba Cloud ECS instance. For that, I am trying to export my database structure and data from the phppgadmin pannel in my dev environment. I tried a couple of times it always gives me an empty file (0 bytes). So I decided to use Postgres dump to export the database but it gives me only DB structure. What I am missing? This is my first application with respect to PostgreSQL.
The Command I used to get the PostgreSQL dump is
pg_dump -U username dbname > dbexport.sql
Note: The above is the syntax i used to export the PostgreSQL after getting empty file via the control pannel.
sql postgresql alibaba-cloud alibaba-cloud-ecs
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to deploy my application in Alibaba Cloud ECS instance. For that, I am trying to export my database structure and data from the phppgadmin pannel in my dev environment. I tried a couple of times it always gives me an empty file (0 bytes). So I decided to use Postgres dump to export the database but it gives me only DB structure. What I am missing? This is my first application with respect to PostgreSQL.
The Command I used to get the PostgreSQL dump is
pg_dump -U username dbname > dbexport.sql
Note: The above is the syntax i used to export the PostgreSQL after getting empty file via the control pannel.
sql postgresql alibaba-cloud alibaba-cloud-ecs
I am trying to deploy my application in Alibaba Cloud ECS instance. For that, I am trying to export my database structure and data from the phppgadmin pannel in my dev environment. I tried a couple of times it always gives me an empty file (0 bytes). So I decided to use Postgres dump to export the database but it gives me only DB structure. What I am missing? This is my first application with respect to PostgreSQL.
The Command I used to get the PostgreSQL dump is
pg_dump -U username dbname > dbexport.sql
Note: The above is the syntax i used to export the PostgreSQL after getting empty file via the control pannel.
sql postgresql alibaba-cloud alibaba-cloud-ecs
sql postgresql alibaba-cloud alibaba-cloud-ecs
asked Nov 22 at 3:10
Ranjith Udayakumar
13811
13811
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
You can try below mentioned command line to export PostgreSQL Dump:
./pg_dump -U username -c -f /htdocs/dbexport.sql databasename
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
You can try below mentioned command line to export PostgreSQL Dump:
./pg_dump -U username -c -f /htdocs/dbexport.sql databasename
add a comment |
up vote
0
down vote
accepted
You can try below mentioned command line to export PostgreSQL Dump:
./pg_dump -U username -c -f /htdocs/dbexport.sql databasename
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
You can try below mentioned command line to export PostgreSQL Dump:
./pg_dump -U username -c -f /htdocs/dbexport.sql databasename
You can try below mentioned command line to export PostgreSQL Dump:
./pg_dump -U username -c -f /htdocs/dbexport.sql databasename
answered 2 days ago
Ashly Taylor
3027
3027
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53423329%2fempty-file-is-returned-when-i-am-trying-to-export-the-postgresql-from-phppgadmin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown