




GRANT SELECT, INSERT, UPDATE, DELETE, EXECUTE,
      CREATE, ALTER, DROP, INDEX, REFERENCES, TRIGGER,
      CREATE TEMPORARY TABLES, LOCK TABLES
  ON vihar_db.*
  TO 'vihar_usr'@'127.0.0.1';

GRANT SELECT, INSERT, UPDATE, DELETE, EXECUTE,
      CREATE, ALTER, DROP, INDEX, REFERENCES, TRIGGER,
      CREATE TEMPORARY TABLES, LOCK TABLES
  ON vihar_db.*
  TO 'vihar_usr'@'localhost';

FLUSH PRIVILEGES;


GRANT SELECT ON vihar_db.* TO 'vihar_ro'@'127.0.0.1';
FLUSH PRIVILEGES;

SELECT 'Database vihar_db ready. Run prisma migrate deploy next.' AS status;
