Skip to content

Instantly share code, notes, and snippets.

@cyupa
Created October 9, 2014 11:12
Show Gist options
  • Save cyupa/a71f3c4ca9c4115119a9 to your computer and use it in GitHub Desktop.
Save cyupa/a71f3c4ca9c4115119a9 to your computer and use it in GitHub Desktop.
Creates a Sonar database
#
# Create Sonar database and user.
#
# Command: mysql -u root -p < create_sonar_database.sql
#
CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'sonar' IDENTIFIED BY 'sonar';
GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar';
GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment