Created
March 9, 2016 10:54
-
-
Save arcusfelis/6c9f9c0ade7cee8d20e3 to your computer and use it in GitHub Desktop.
Bootstrap ejabberd database (mongooseim)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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