TarteelAI / quranic-universal-library

A comprehensive collection of Quran resources
https://qul.tarteel.ai/
MIT License
231 stars 21 forks source link

a new command added to restore the database from sql dumb. #142

Closed YasserCherfaoui closed 4 weeks ago

YasserCherfaoui commented 1 month ago

I tried running the command

  psql quran_dev < "path to sql dump file"

but it didn't work so I tried another way and it worked, so I thought about sharing it. I will add other tips that helped me in running the project successfully. PS: I'm running the project on M1 Pro.

naveed-ahmad commented 4 weeks ago

If you're connecting with db using default role( your host username ) the shorthand psql db < dump.sql command should work.

I guess you can also specify username with this command psql -U username db < dump.sql, but if you need more control, your suggestion is better option. JAK for your contribution.