Skip to content

Instantly share code, notes, and snippets.

@arcusfelis
Created March 9, 2016 10:54
Show Gist options
  • Save arcusfelis/6c9f9c0ade7cee8d20e3 to your computer and use it in GitHub Desktop.
Save arcusfelis/6c9f9c0ade7cee8d20e3 to your computer and use it in GitHub Desktop.
Bootstrap ejabberd database (mongooseim)
create database ejabberd;
create user 'ejabberd'@'%' identified by 'ejabberd';
create user 'ejabberd'@'localhost' identified by 'ejabberd';
set password for 'ejabberd'@'%' = password('ejabberd');
set password for 'ejabberd'@'localhost' = password('ejabberd');
grant all privileges on ejabberd.* to 'ejabberd'@'%' with grant option;
grant all privileges on ejabberd.* to 'ejabberd'@'localhost' with grant option;
flush privileges;
mysql -h localhost -u ejabberd -pejabberd ejabberd < mysql.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment