# ------------------------------------------------------------------------------- # SODA|DataStore: SQL Script for Installing the SODA Super User (soda) # Copyright (C) 2007 Anthony Meneaugh # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # ------------------------------------------------------------------------------- DELIMITER $$ DROP PROCEDURE IF EXISTS `soda`.`stp_user_soda_add` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `stp_user_soda_add`() BEGIN GRANT ALL PRIVILEGES ON soda.* TO `soda`@`localhost` IDENTIFIED BY 'soda' WITH GRANT OPTION; GRANT SELECT,INSERT,DELETE ON mysql.user TO `soda`@`localhost`; GRANT SELECT,INSERT,DELETE ON mysql.db TO `soda`@`localhost`; GRANT SELECT,INSERT,DELETE ON mysql.procs_priv TO `soda`@`localhost`; END $$ DELIMITER ;