with my code, I would like to create a MySql User and set permission on tables:
Code: Select all
var aQ:tuniquery;
....
....
with aQ do
begin
connection.startTransaction;
close;
sql.clear;
sql.add('CREATE USER [email protected] IDENTIFIED BY apwd');
execsql;
close;
sql.clear;
sql.add('GRANT SELECT ON TABLE aTbl TO [email protected] ');
execsql;
connection.commit
end;
Any ideas?
Thanks,
Flavio