In left pane select
Select Server -> Databases right click -> select Create Database -> It will open create Database window.
However, CREATE DATABASE does not copy database-level GRANT permissions attached to the source database. The new database has default database-level permissions.
There is a second standard system database named template0. This database contains the same data as the initial contents of template1, that is, only the standard objects predefined by your version of PostgreSQL. template0 should never be changed after the database cluster has been initialized. By instructing CREATE DATABASE to copy template0 instead of template1, you can create a “pristine” user database (one where no user-defined objects exist and where the system objects have not been altered) that contains none of the site-local additions in template1. This is particularly handy when restoring a pg_dump dump: the dump script should be restored in a pristine database to ensure that one recreates the correct contents of the dumped database, without conflicting with objects that might have been added to template1 later on.
Another common reason for copying template0 instead of template1 is that new encoding and locale settings can be specified when copying template0, whereas a copy of template1 must use the same settings it does. This is because template1 might contain encoding-specific or locale-specific data, while template0 is known not to.
To create a database by copying template0, use:
SQL syntax
CREATE DATABASE dbname TEMPLATE template0;
In Security tab you can define what are the user will have access to the database and their access rights.
Save It will create the database in the server
No comments:
Post a Comment