Skip to content

Instantly share code, notes, and snippets.

@jubel-han
Created February 6, 2015 07:17
Show Gist options
  • Save jubel-han/f4232f51d87a85e28006 to your computer and use it in GitHub Desktop.
Save jubel-han/f4232f51d87a85e28006 to your computer and use it in GitHub Desktop.
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