Skip to content

Instantly share code, notes, and snippets.

@laszlomiklosik
Last active December 12, 2015 09:39
Show Gist options
  • Save laszlomiklosik/4753324 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/4753324 to your computer and use it in GitHub Desktop.
mysql: connect, create user and database
sudo mysql --user=root mysql --password
CREATE DATABASE your_db DEFAULT CHARACTER SET utf8;
CREATE USER 'your_user'@'%' IDENTIFIED BY 'your_pass';
GRANT ALL PRIVILEGES ON your_db.* TO 'your_user'@'%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment