root@victor0000:~#
root@victor0000:~# mysql -uroot -p1 -h192.168.100.2
ERROR 1045 (28000): Access denied for user 'root'@'192.168.100.2' (using password: YES)
root@victor0000:~# mysql -uroot -p1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 50
Server version: 5.1.67-0ubuntu0.10.04.1 (Ubuntu)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE USER 'root'@'%' IDENTIFIED BY '2';
Query OK, 0 rows affected (0.00 sec)
mysql> \q
Bye
root@victor0000:~# mysql -uroot -p1 -h192.168.100.2
ERROR 1045 (28000): Access denied for user 'root'@'192.168.100.2' (using password: YES)
root@victor0000:~# mysql -uroot -p2 -h192.168.100.2
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 52
Server version: 5.1.67-0ubuntu0.10.04.1 (Ubuntu)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> DROP USER root;
ERROR 1227 (42000): Access denied; you need the CREATE USER privilege for this operation
mysql> \q
Bye
root@victor0000:~# mysql -uroot -p1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 53
Server version: 5.1.67-0ubuntu0.10.04.1 (Ubuntu)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> DROP USER root;
Query OK, 0 rows affected (0.00 sec)
mysql> \q
Bye
root@victor0000:~# mysql -uroot -p2 -h192.168.100.2
ERROR 1045 (28000): Access denied for user 'root'@'192.168.100.2' (using password: YES)
root@victor0000:~#