$ mysqladmin -u root -h localhost password kowalski1
$ mysql -uroot -hlocalhost -pkowalski1
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 75
Server version: 5.0.37 MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> 
