Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

permission denied to create extension "uuid-ossp"

I'm building a Rails project on postgresql, but when I

rake db:migrate 

I get the following error:

 permission denied to create extension "uuid-ossp" 

Here's how my database.yml looks like:

app_common: &app_common adapter: postgresql host: 127.0.0.1 port: 5432 encoding: unicode pool: 5 username: root password: 
like image 264
User314159 Avatar asked Mar 03 '14 00:03

User314159


People also ask

What is UUID OSSP?

The uuid-ossp module provides functions to generate universally unique identifiers (UUIDs) using one of several standard algorithms. There are also functions to produce certain special UUID constants. This module is only necessary for special requirements beyond what is available in core PostgreSQL.

What is create extension in PostgreSQL?

Description. CREATE EXTENSION loads a new extension into the current database. There must not be an extension of the same name already loaded. Loading an extension essentially amounts to running the extension's script file.


1 Answers

Figured it out, I need to postegresql and change the root role to superuser:

$psql  ALTER USER root WITH SUPERUSER; 
like image 66
User314159 Avatar answered Sep 20 '22 14:09

User314159