I try to create a user account mysql with a procedure but is not working the problem is the procedure is not call the variable username you have an idea please
CREATE PROCEDURE databaseA.Test(username varchar(255))
CREATE USER username@'localhost' IDENTIFIED BY 'test';
CALL TEST("Admin2")
MySQL a répondu: Documentation
usernameonxxx(for example), it would create userxxx@localhost.