# cat admin_user.sql use mysql; grant usage on *.* to admin@localhost; update user set password=password('password') where user='admin'; -- drop database admindb; create database admindb; grant all on admindb.* to admin; flush privileges;
# mysql -u root -p < admin_user.sql