Skip to main content
added 83 characters in body
Source Link
Farid Chowdhury
  • 3.2k
  • 1
  • 29
  • 22

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; 
  4. Now exit from psql by following command:

    \q 

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; 

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; 
  4. Now exit from psql by following command:

    \q 
added 97 characters in body
Source Link
Farid Chowdhury
  • 3.2k
  • 1
  • 29
  • 22

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; CREATE SCHEMA public;   GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; 

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; CREATE SCHEMA public; 

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; CREATE SCHEMA public;   GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; 
added 28 characters in body
Source Link
Farid Chowdhury
  • 3.2k
  • 1
  • 29
  • 22

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; CREATE SCHEMA public; 

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; 

Following steps might be helpful (For linux users):

  1. At first enter the postgres command prompt by following command:

    sudo -u postgres psql 
  2. Enter the database by this command (my database name is: maoss):

    \c maoss 
  3. Now enter the command for droping all tables:

    DROP SCHEMA public CASCADE; CREATE SCHEMA public; 
format code blocks
Source Link
Paul Roub
  • 36.5k
  • 27
  • 88
  • 95
Loading
Source Link
Farid Chowdhury
  • 3.2k
  • 1
  • 29
  • 22
Loading