Connect to the sampdb database on the local host and on cobra.snake.net:
% mysql -p -u sampadm sampdb % mysql -h cobra.snake.net -p -u sampadm sampdb