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;



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

Please :)


Comments loading...
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.