This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-17. For the latest, interactive version please visit https://mariadb.com/kb/.

Creating users access denied

Can someone help me with where I am going wrong?

I am using the syntax

GRANT ALL PRIVILEGES ON database2.* TO 'user-user'@'localhost' IDENTIFIED BY 'REDACTED';

The database and the user are showing in

SELECT User,Host FROM mysql.user;

And

SHOW DATABASES;

I am doing something wrong I just cannot point my finger on it

Please :)

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.