Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Webmin Administrator's Cookbook

You're reading from  Webmin Administrator's Cookbook

Product type Book
Published in Mar 2014
Publisher
ISBN-13 9781849515849
Pages 376 pages
Edition 1st Edition
Languages
Author (1):
Michal Karzynski Michal Karzynski
Profile icon Michal Karzynski

Table of Contents (19) Chapters

Webmin Administrator's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Setting Up Your System 2. User Management 3. Securing Your System 4. Controlling Your System 5. Monitoring Your System 6. Managing Files on Your System 7. Backing Up Your System 8. Running an Apache Web Server 9. Running a MySQL Database Server 10. Running a PostgreSQL Database Server 11. Running Web Applications 12. Setting Up an E-mail Server Index

Creating a new database


Creating a new PostgreSQL database through Webmin's interface is very quick and simple.

How to do it...

Follow these steps to create a database:

  1. Navigate to Servers | PostgreSQL Database Server.

  2. Click the Create a new database link.

  3. Enter a Database name, for instance, new_db.

  4. Select the user who will have administrative rights to the database from the Owned by user dropdown.

  5. Leave Character set encoding and Database file path set to Default.

  6. Set Template database to template1.

  7. Click the Create button.

How it works...

Webmin takes the information you provide and creates a new database by connecting to the PostgreSQL server and executing the following command:

CREATE DATABASE new_db WITH OWNER="dbuser" TEMPLATE = template1;

Postgres creates the new database by making a copy of a selected template. The database, template1, is installed by default to serve as a source of default settings for newly created databases. If you want new databases to have different settings, for instance...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}