views:

28

answers:

1

I need to create a script that can create a user/password and grant then certain privileges on a local DB.

Thanks in advance!

-Sol

A: 
GRANT ALL PRIVILEGES ON DB.* TO 'user'@'%' IDENTIFIED BY 'password';
Sol