MySQL routine

mysql> CREATE DATABASE db;

mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON db.* TO 'monty'@'localhost' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> SHOW GRANTS FOR 'admin'@'localhost';

run sql

$ mysql  -u root -p db_name < text_file