0
I need that after being registered a new person in the table Trigger be fired and create a new user in the database with the data name and password of the registered record. I tried with several models of insruções but I did not succeed, tried the common way to create a new user:
delimiter $
create trigger tgr_new_user after insert on pessoa
for each row
begin
create user new.nome@'localhost' identified by new.senha;
end $
delimiter ;
but Mysql returns error.
"but Mysql returns error" which error? put in question the details
– Ricardo Pontual