[root@SR3 mysqldata]# /opt/mysql/bin/mysql -hlocalhost -uroot -pinfohow
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.5.16-log Source distribution
Copyright (c) 2000, 2011, 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> use mysql;
Database changed
mysql> set password for 'dms'@'10.86.87.155'=password('infohow');
Query OK, 0 rows affected (0.03 sec)
mysql> FLUSH PRIVILEGES
-> ;
Query OK, 0 rows affected (0.01 sec)
[root@SR3 mysqldata]# /opt/mysql/bin/mysql -h10.86.87.155 -udms -pinfohow
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.5.16-log Source distribution
Copyright (c) 2000, 2011, 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> exit