Skip to content

Instantly share code, notes, and snippets.

@imylomylo
Created May 25, 2019 06:19
Show Gist options
  • Save imylomylo/1cc26c5481f415865b43127d635cc712 to your computer and use it in GitHub Desktop.
Save imylomylo/1cc26c5481f415865b43127d635cc712 to your computer and use it in GitHub Desktop.
sudo mysql -uroot
create user sampledbuser@localhost identified by 'samplepassword';
alter user 'sampledbuser'@'localhost' identified with mysql_native_password by 'samplepassword'
create sampledb
grant all on sampledb.* to 'sampledbuser'@'localhost'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment