Advertisement
Refael

Created Database

Jun 3rd, 2011
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. virgae@virgae-Matheimael:~$ mysql -u root -p -h localhost
  2. Enter password:
  3. Welcome to the MySQL monitor. Commands end with ; or \g.
  4. Your MySQL connection id is 49
  5. Server version: 5.1.54-1ubuntu4 (Ubuntu)
  6.  
  7. Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
  8. This software comes with ABSOLUTELY NO WARRANTY. This is free software,
  9. and you are welcome to modify and redistribute it under the GPL v2 license
  10.  
  11. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  12.  
  13. mysql> drop user 'Jhesus'@'localhost';
  14. Query OK, 0 rows affected (0.00 sec)
  15.  
  16. mysql> use Liles;
  17. Database changed
  18. mysql> create user 'Ihsua'@'localhost';
  19. Query OK, 0 rows affected (0.00 sec)
  20.  
  21. mysql> SET PASSWORD FOR
  22. -> 'Ihsua'@'localhost' = PASSWORD('TheSecretusPasswurd');
  23. Query OK, 0 rows affected (0.00 sec)
  24.  
  25. mysql> grant all on Liles.* to Ihsua;
  26. Query OK, 0 rows affected (0.00 sec)
  27.  
  28. mysql> grant all on Liles.* to 'Ihsua'@'localhost';
  29. Query OK, 0 rows affected (0.00 sec)
  30.  
  31. mysql> FLUSH PRIVILEGES;
  32. Query OK, 0 rows affected (0.00 sec)
  33.  
  34. mysql> quit;
  35. Bye
  36. virgae@virgae-Matheimael:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement