How to Import database to MY computer and send to other person

 task rinku sir ::

import the database inside your computer from your project and send (export) to me through skype


step 01 :: Reference link used :: 

https://www.a2hosting.in/kb/developer-corner/postgresql/import-and-export-a-postgresql-database


step 02 :: command used -- 


pg_dump -U username dbname > dbexport.pgsql
pg_dump -U username dbname > dbexport.sql

Note:: rinku sir ke acording sql hoga sirg pgsql nai hoga 

pg_dump -U postgres thera_main_dev > 15_thera_main.pgsql

Note :: Rinku sir say that dbexport.psql command hota hai :: pgsql nai hota hai 

username : postgres 

how to know :: you will know it  by your project or any other project or internet search 

dbname ::  thera_main_dev 

how to know  :: it will be write in the 4th line inside config/application.yml


Note :: after the given command database file will be imported by that name you have created the database inside the command . 

step 3 ::

send it to the person you want to export through skype :: 

A. that file 

B. application.yml file 





Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5