Grant all on a specific schema in the db to a group role in PostgreSQL

You found the shorthand to set privileges for all existing tables in the given schema. The manual clarifies: (but note that ALL TABLES is considered to include views and foreign tables). Bold emphasis mine. serial columns are implemented with nextval() on a sequence as column default and, quoting the manual: For sequences, this privilege allows … Read more

How can I restore the MySQL root user’s full privileges?

If the GRANT ALL doesn’t work, try: Stop mysqld and restart it with the –skip-grant-tables option. Connect to the mysqld server with just: mysql (i.e. no -p option, and username may not be required). Issue the following commands in the mysql client: UPDATE mysql.user SET Grant_priv=’Y’, Super_priv=’Y’ WHERE User=”root”; FLUSH PRIVILEGES; After that, you should … Read more

I can not find my.cnf on my windows computer [duplicate]

Here is my answer: Win+R (shortcut for ‘run’), type services.msc, Enter You should find an entry like ‘MySQL56’, right click on it, select properties You should see something like “D:/Program Files/MySQL/MySQL Server 5.6/bin\mysqld” –defaults-file=”D:\ProgramData\MySQL\MySQL Server 5.6\my.ini” MySQL56 Full answer here: https://stackoverflow.com/a/20136523/1316649

Why is a “GRANT USAGE” created the first time I grant a user privileges?

As you said, in MySQL USAGE is synonymous with “no privileges”. From the MySQL Reference Manual: The USAGE privilege specifier stands for “no privileges.” It is used at the global level with GRANT to modify account attributes such as resource limits or SSL characteristics without affecting existing account privileges. USAGE is a way to tell … Read more

PostgreSQL: Give all permissions to a user on a PostgreSQL database

All commands must be executed while connected to the right database cluster. Make sure of it. Roles are objects of the database cluster. All databases of the same cluster share the set of defined roles. Privileges are granted / revoked per database / schema / table etc. A role needs access to the database, obviously. … Read more