MYSQL v8 Privileges

Patdundee

MySQL v8 command line and with phpmyadmin

I am logged into mysql as root (FULL Privileges) and I am trying to assign ALL privileges on a specific database to a user. It gives them all privileges but DOES NOT allow Administration GRANT on the database (See Attached)Snapshot

This is the same result for direct command line or phpmyadmin

Any ideas please?

Thanks in advance P

Bill Karwin

You must GRANT ALL PRIVILEGES ... WITH GRANT OPTION.

That means you grant all the privileges to the target user, as well as the privilege to grant those privileges to others.

Read https://dev.mysql.com/doc/refman/8.0/en/grant.html:

The optional WITH clause is used to enable a user to grant privileges to other users. The WITH GRANT OPTION clause gives the user the ability to give to other users any privileges the user has at the specified privilege level.

To grant the GRANT OPTION privilege to an account without otherwise changing its privileges, do this:

GRANT USAGE ON *.* TO 'someuser'@'somehost' WITH GRANT OPTION;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

RDS Grant Privileges (Remove Delete Privileges on Specific Table?) MySQL

Creating a user and granting all privileges on mySQL

Golang dropping privileges (v1.7)

When is Flush Privileges in MySQL really needed?

MySQL/Amazon RDS error: "you do not have SUPER privileges..."

MySQL: Grant **all** privileges on database

How do I correctly set ownership and privileges in MariaDB (MySQL)?

mysql grant privileges without identified by password

How to revoke MySQL user privileges for one table?

How can you simulate a LATERAL JOIN in MySQL v8 to execute a subquery or join for each row?

Cannot grant privileges to a user using root on mysql

which mysql Privileges should I be using for these users?

Add column in view - Last matching condition using MySQL Below v8

how to grant MySQL privileges only to a specific row

Bash escaping (MySQL GRANT ALL PRIVILEGES is failing)

Mysql privileges on certain commands

How can I change mysql user privileges?

Difference between Create User and Grant Privileges in MySQL

Privileges for CREATE table on MySQL, given all privileges

Creating MySQL function requires SUPER privileges

MySQL Privileges To Create Database

How to give superuser privileges to MySQL?

MySQL user privileges not working when using IP

MySQL User with select privileges can still update

No MySQL Privileges For Any Usr

Is there a queryable table of the privileges supported by a MySQL server?

Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries"

How to view privileges of rdsadmin on mysql instance?

What privileges does a MySQL user need in order to access FLUSH LOGS?