Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- virgae@virgae-Matheimael:~$ mysql -u root -p -h localhost
- Enter password:
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 49
- Server version: 5.1.54-1ubuntu4 (Ubuntu)
- Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
- This software comes with ABSOLUTELY NO WARRANTY. This is free software,
- and you are welcome to modify and redistribute it under the GPL v2 license
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
- mysql> drop user 'Jhesus'@'localhost';
- Query OK, 0 rows affected (0.00 sec)
- mysql> use Liles;
- Database changed
- mysql> create user 'Ihsua'@'localhost';
- Query OK, 0 rows affected (0.00 sec)
- mysql> SET PASSWORD FOR
- -> 'Ihsua'@'localhost' = PASSWORD('TheSecretusPasswurd');
- Query OK, 0 rows affected (0.00 sec)
- mysql> grant all on Liles.* to Ihsua;
- Query OK, 0 rows affected (0.00 sec)
- mysql> grant all on Liles.* to 'Ihsua'@'localhost';
- Query OK, 0 rows affected (0.00 sec)
- mysql> FLUSH PRIVILEGES;
- Query OK, 0 rows affected (0.00 sec)
- mysql> quit;
- Bye
- virgae@virgae-Matheimael:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement