Hi all,
How to run a script with all the commands of a user creation in mysql server 4.1.7 ?
Like I have to create a users in my PC and I want creat a script for that. The commands i use to creat a user is as follows:
Code:
GRANT SELECT(name,fname) on 'test`.`sample` to 'bob'@'localhost';
flush privileges;
UPDATE mysql.user set Password=PASSWORD('dummy') where user='bob' and Host='localhost';
flush privileges;
Now how to make a script so that whenever I run the script it will create the user using these 4 commands.
Thanks in advance.