ProgrammingError: permission denied to create database ??

Hello All,
I got an error while creating a DB, the error given below. 
ProgrammingError: permission denied to create database


The answer :
1. sudo su  postgres    (the idea is to switch to postgresql user)
2. psql
3. ALTER USER odoo WITH CREATEDB; (change odoo with your username)

Comments

Popular posts from this blog

How to learn data structure effectively

How to resolve some issue while Installing Moodle Ubuntu 16.04 using Xampp

How to change phpmyadmin URL in Xampp Ubuntu and how to solve 'New Security Concept while accessing Phpmyadmin - Xampp' ?