Advertisement
Guest User

Untitled

a guest
May 16th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.55 KB | None | 0 0
  1. $ mysql -u root -p
  2. # enter the following sql
  3. CREATE USER domain@localhost; GRANT USAGE ON * . * TO  domain@localhost WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; CREATE DATABASE IF NOT EXISTS  domain; GRANT ALL PRIVILEGES ON  domain.* TO domain@localhost;
  4. # then switch to the mysql db
  5. # change password - use strongpasswordgenerator.com or similar, - ideally without symbols, easier to include in bash aliases
  6. use mysql;
  7. update user set password=PASSWORD("NEW-PASSWORD-HERE") where User='domain';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement