Advertisement
Guest User

Untitled

a guest
May 24th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. mysql> CREATE DATABASE wordpress;
  2. Query OK, 1 row affected (0.00 sec)
  3.  
  4. mysql> CREATE USER 'wordpress'@'172.31.%' IDENTIFIED BY 'z62Vtik5';
  5. Query OK, 0 rows affected (0.00 sec)
  6.  
  7. mysql> GRANT ALL ON wordpress.* to 'wordpress'@'172.31.%';
  8. Query OK, 0 rows affected (0.01 sec)
  9.  
  10. mysql> FLUSH PRIVILEGES;
  11. Query OK, 0 rows affected (0.00 sec)
  12.  
  13. [root@localhost ~]# mysql --user=wordpress --password=z62Vtik5 --host=mysql.localhost wordpress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement