use mysql
DELETE FROM user where host='%sb_db_host%' and user='%sb_db_user%'
INSERT INTO user (Host, User, Password, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv) VALUES ('%sb_db_host%', '%sb_db_user%', PASSWORD('%sb_db_password%'),'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N')
DELETE FROM tables_priv where host='%sb_db_host%' and user='%sb_db_user%'
INSERT INTO tables_priv (Host, Db, User, Table_name, Grantor, Timestamp, Table_priv, Column_priv) VALUES ('%sb_db_host%', '%sb_db_name%', '%sb_db_user%', '%', '', 20041028102843, 'Select,Insert,Update,Delete,Alter', 'Select,Insert,Update')
DELETE FROM db where host='%sb_db_host%' and db='%sb_db_name%' and user='%sb_db_user%'
INSERT INTO db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv) VALUES ('%sb_db_host%', '%sb_db_name%', '%sb_db_user%', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'Y', 'Y', 'Y')
FLUSH PRIVILEGES